当前位置: 首页>>代码示例>>C#>>正文


C# TProtocol.WriteBool方法代码示例

本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteBool方法的具体用法?C# TProtocol.WriteBool怎么用?C# TProtocol.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("Query");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (QueryId != null && __isset.queryId) {
     field.Name = "queryId";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(QueryId);
     oprot.WriteFieldEnd();
       }
       if (QueryType != null && __isset.queryType) {
     field.Name = "queryType";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(QueryType);
     oprot.WriteFieldEnd();
       }
       if (QueryAttributes != null && __isset.queryAttributes) {
     field.Name = "queryAttributes";
     field.Type = TType.Map;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, QueryAttributes.Count));
       foreach (string _iter61 in QueryAttributes.Keys)
       {
     oprot.WriteString(_iter61);
     oprot.WriteString(QueryAttributes[_iter61]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (QueryCounters != null && __isset.queryCounters) {
     field.Name = "queryCounters";
     field.Type = TType.Map;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I64, QueryCounters.Count));
       foreach (string _iter62 in QueryCounters.Keys)
       {
     oprot.WriteString(_iter62);
     oprot.WriteI64(QueryCounters[_iter62]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (StageGraph != null && __isset.stageGraph) {
     field.Name = "stageGraph";
     field.Type = TType.Struct;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     StageGraph.Write(oprot);
     oprot.WriteFieldEnd();
       }
       if (StageList != null && __isset.stageList) {
     field.Name = "stageList";
     field.Type = TType.List;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, StageList.Count));
       foreach (Stage _iter63 in StageList)
       {
     _iter63.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (__isset.done) {
     field.Name = "done";
     field.Type = TType.Bool;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Done);
     oprot.WriteFieldEnd();
       }
       if (__isset.started) {
     field.Name = "started";
     field.Type = TType.Bool;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Started);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:95,代码来源:Query.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NotebookRestrictions");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.noReadNotes) {
     field.Name = "noReadNotes";
     field.Type = TType.Bool;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoReadNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noCreateNotes) {
     field.Name = "noCreateNotes";
     field.Type = TType.Bool;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoCreateNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noUpdateNotes) {
     field.Name = "noUpdateNotes";
     field.Type = TType.Bool;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoUpdateNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noExpungeNotes) {
     field.Name = "noExpungeNotes";
     field.Type = TType.Bool;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoExpungeNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noShareNotes) {
     field.Name = "noShareNotes";
     field.Type = TType.Bool;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoShareNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noEmailNotes) {
     field.Name = "noEmailNotes";
     field.Type = TType.Bool;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoEmailNotes);
     oprot.WriteFieldEnd();
   }
   if (__isset.noSendMessageToRecipients) {
     field.Name = "noSendMessageToRecipients";
     field.Type = TType.Bool;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoSendMessageToRecipients);
     oprot.WriteFieldEnd();
   }
   if (__isset.noUpdateNotebook) {
     field.Name = "noUpdateNotebook";
     field.Type = TType.Bool;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoUpdateNotebook);
     oprot.WriteFieldEnd();
   }
   if (__isset.noExpungeNotebook) {
     field.Name = "noExpungeNotebook";
     field.Type = TType.Bool;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoExpungeNotebook);
     oprot.WriteFieldEnd();
   }
   if (__isset.noSetDefaultNotebook) {
     field.Name = "noSetDefaultNotebook";
     field.Type = TType.Bool;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoSetDefaultNotebook);
     oprot.WriteFieldEnd();
   }
   if (__isset.noSetNotebookStack) {
     field.Name = "noSetNotebookStack";
     field.Type = TType.Bool;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoSetNotebookStack);
     oprot.WriteFieldEnd();
   }
   if (__isset.noPublishToPublic) {
     field.Name = "noPublishToPublic";
     field.Type = TType.Bool;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(NoPublishToPublic);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:NotebookRestrictions.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Note");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Guid != null && __isset.guid) {
     field.Name = "guid";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Guid);
     oprot.WriteFieldEnd();
   }
   if (Title != null && __isset.title) {
     field.Name = "title";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Title);
     oprot.WriteFieldEnd();
   }
   if (Content != null && __isset.content) {
     field.Name = "content";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Content);
     oprot.WriteFieldEnd();
   }
   if (ContentHash != null && __isset.contentHash) {
     field.Name = "contentHash";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(ContentHash);
     oprot.WriteFieldEnd();
   }
   if (__isset.contentLength) {
     field.Name = "contentLength";
     field.Type = TType.I32;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(ContentLength);
     oprot.WriteFieldEnd();
   }
   if (__isset.created) {
     field.Name = "created";
     field.Type = TType.I64;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Created);
     oprot.WriteFieldEnd();
   }
   if (__isset.updated) {
     field.Name = "updated";
     field.Type = TType.I64;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Updated);
     oprot.WriteFieldEnd();
   }
   if (__isset.deleted) {
     field.Name = "deleted";
     field.Type = TType.I64;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Deleted);
     oprot.WriteFieldEnd();
   }
   if (__isset.active) {
     field.Name = "active";
     field.Type = TType.Bool;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Active);
     oprot.WriteFieldEnd();
   }
   if (__isset.updateSequenceNum) {
     field.Name = "updateSequenceNum";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(UpdateSequenceNum);
     oprot.WriteFieldEnd();
   }
   if (NotebookGuid != null && __isset.notebookGuid) {
     field.Name = "notebookGuid";
     field.Type = TType.String;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(NotebookGuid);
     oprot.WriteFieldEnd();
   }
   if (TagGuids != null && __isset.tagGuids) {
     field.Name = "tagGuids";
     field.Type = TType.List;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, TagGuids.Count));
       foreach (string _iter26 in TagGuids)
//.........这里部分代码省略.........
开发者ID:nicks707,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:Note.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("PremiumInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.currentTime) {
     field.Name = "currentTime";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(CurrentTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.premium) {
     field.Name = "premium";
     field.Type = TType.Bool;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Premium);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumRecurring) {
     field.Name = "premiumRecurring";
     field.Type = TType.Bool;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(PremiumRecurring);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumExpirationDate) {
     field.Name = "premiumExpirationDate";
     field.Type = TType.I64;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(PremiumExpirationDate);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumExtendable) {
     field.Name = "premiumExtendable";
     field.Type = TType.Bool;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(PremiumExtendable);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumPending) {
     field.Name = "premiumPending";
     field.Type = TType.Bool;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(PremiumPending);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumCancellationPending) {
     field.Name = "premiumCancellationPending";
     field.Type = TType.Bool;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(PremiumCancellationPending);
     oprot.WriteFieldEnd();
   }
   if (__isset.canPurchaseUploadAllowance) {
     field.Name = "canPurchaseUploadAllowance";
     field.Type = TType.Bool;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CanPurchaseUploadAllowance);
     oprot.WriteFieldEnd();
   }
   if (SponsoredGroupName != null && __isset.sponsoredGroupName) {
     field.Name = "sponsoredGroupName";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SponsoredGroupName);
     oprot.WriteFieldEnd();
   }
   if (__isset.sponsoredGroupRole) {
     field.Name = "sponsoredGroupRole";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)SponsoredGroupRole);
     oprot.WriteFieldEnd();
   }
   if (__isset.premiumUpgradable) {
     field.Name = "premiumUpgradable";
     field.Type = TType.Bool;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(PremiumUpgradable);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:95,代码来源:PremiumInfo.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ArmyMemberInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.charId) {
     field.Name = "charId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(CharId);
     oprot.WriteFieldEnd();
   }
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (__isset.professionId) {
     field.Name = "professionId";
     field.Type = TType.I32;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(ProfessionId);
     oprot.WriteFieldEnd();
   }
   if (__isset.level) {
     field.Name = "level";
     field.Type = TType.I16;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Level);
     oprot.WriteFieldEnd();
   }
   if (__isset.role) {
     field.Name = "role";
     field.Type = TType.Byte;
     field.ID = 50;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Role);
     oprot.WriteFieldEnd();
   }
   if (__isset.joinTime) {
     field.Name = "joinTime";
     field.Type = TType.I32;
     field.ID = 60;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(JoinTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.lastOfflineTime) {
     field.Name = "lastOfflineTime";
     field.Type = TType.I32;
     field.ID = 70;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(LastOfflineTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.online) {
     field.Name = "online";
     field.Type = TType.Bool;
     field.ID = 100;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Online);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:71,代码来源:ArmyMemberInfo.cs

示例6: Write

            public void Write(TProtocol oprot)
            {
                TStruct struc = new TStruct("drop_type_result");
                oprot.WriteStructBegin(struc);
                TField field = new TField();

                if (this.__isset.success)
                {
                    field.Name = "Success";
                    field.Type = TType.Bool;
                    field.ID = 0;
                    oprot.WriteFieldBegin(field);
                    oprot.WriteBool(Success);
                    oprot.WriteFieldEnd();
                }
                else if (this.__isset.o1)
                {
                    if (O1 != null)
                    {
                        field.Name = "O1";
                        field.Type = TType.Struct;
                        field.ID = 1;
                        oprot.WriteFieldBegin(field);
                        O1.Write(oprot);
                        oprot.WriteFieldEnd();
                    }
                }
                else if (this.__isset.o2)
                {
                    if (O2 != null)
                    {
                        field.Name = "O2";
                        field.Type = TType.Struct;
                        field.ID = 2;
                        oprot.WriteFieldBegin(field);
                        O2.Write(oprot);
                        oprot.WriteFieldEnd();
                    }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:42,代码来源:ThriftHiveMetastore.cs

示例7: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("WebOnlyFriend");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.userId) {
     field.Name = "userId";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(UserId);
     oprot.WriteFieldEnd();
   }
   if (Username != null && __isset.username) {
     field.Name = "username";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Username);
     oprot.WriteFieldEnd();
   }
   if (FirstName != null && __isset.firstName) {
     field.Name = "firstName";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(FirstName);
     oprot.WriteFieldEnd();
   }
   if (LastName != null && __isset.lastName) {
     field.Name = "lastName";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(LastName);
     oprot.WriteFieldEnd();
   }
   if (__isset.status) {
     field.Name = "status";
     field.Type = TType.I32;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Status);
     oprot.WriteFieldEnd();
   }
   if (Picture != null && __isset.picture) {
     field.Name = "picture";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Picture);
     oprot.WriteFieldEnd();
   }
   if (Title != null && __isset.title) {
     field.Name = "title";
     field.Type = TType.String;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Title);
     oprot.WriteFieldEnd();
   }
   if (__isset.userTypeId) {
     field.Name = "userTypeId";
     field.Type = TType.I32;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(UserTypeId);
     oprot.WriteFieldEnd();
   }
   if (__isset.isConnected) {
     field.Name = "isConnected";
     field.Type = TType.I32;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(IsConnected);
     oprot.WriteFieldEnd();
   }
   if (Address != null && __isset.address) {
     field.Name = "address";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Address);
     oprot.WriteFieldEnd();
   }
   if (Email != null && __isset.email) {
     field.Name = "email";
     field.Type = TType.String;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Email);
     oprot.WriteFieldEnd();
   }
   if (__isset.canMessage) {
     field.Name = "canMessage";
     field.Type = TType.Bool;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CanMessage);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:101,代码来源:WebOnlyFriend.cs

示例8: Write


//.........这里部分代码省略.........
   }
   if (PictureStatus != null && __isset.pictureStatus) {
     field.Name = "pictureStatus";
     field.Type = TType.String;
     field.ID = 24;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(PictureStatus);
     oprot.WriteFieldEnd();
   }
   if (ThumbnailUrl != null && __isset.thumbnailUrl) {
     field.Name = "thumbnailUrl";
     field.Type = TType.String;
     field.ID = 25;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ThumbnailUrl);
     oprot.WriteFieldEnd();
   }
   if (StatusMessage != null && __isset.statusMessage) {
     field.Name = "statusMessage";
     field.Type = TType.String;
     field.ID = 26;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(StatusMessage);
     oprot.WriteFieldEnd();
   }
   if (DisplayNameOverridden != null && __isset.displayNameOverridden) {
     field.Name = "displayNameOverridden";
     field.Type = TType.String;
     field.ID = 27;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DisplayNameOverridden);
     oprot.WriteFieldEnd();
   }
   if (__isset.favoriteTime) {
     field.Name = "favoriteTime";
     field.Type = TType.I64;
     field.ID = 28;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(FavoriteTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.capableVoiceCall) {
     field.Name = "capableVoiceCall";
     field.Type = TType.Bool;
     field.ID = 31;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CapableVoiceCall);
     oprot.WriteFieldEnd();
   }
   if (__isset.capableVideoCall) {
     field.Name = "capableVideoCall";
     field.Type = TType.Bool;
     field.ID = 32;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CapableVideoCall);
     oprot.WriteFieldEnd();
   }
   if (__isset.capableMyhome) {
     field.Name = "capableMyhome";
     field.Type = TType.Bool;
     field.ID = 33;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CapableMyhome);
     oprot.WriteFieldEnd();
   }
   if (__isset.capableBuddy) {
     field.Name = "capableBuddy";
     field.Type = TType.Bool;
     field.ID = 34;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(CapableBuddy);
     oprot.WriteFieldEnd();
   }
   if (__isset.attributes) {
     field.Name = "attributes";
     field.Type = TType.I32;
     field.ID = 35;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Attributes);
     oprot.WriteFieldEnd();
   }
   if (__isset.settings) {
     field.Name = "settings";
     field.Type = TType.I64;
     field.ID = 36;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Settings);
     oprot.WriteFieldEnd();
   }
   if (PicturePath != null && __isset.picturePath) {
     field.Name = "picturePath";
     field.Type = TType.String;
     field.ID = 37;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(PicturePath);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Banandana,项目名称:LineSharp,代码行数:101,代码来源:Contact.cs

示例9: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCRefreshMonsterMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (MonsterInfoList != null && __isset.monsterInfoList) {
     field.Name = "monsterInfoList";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, MonsterInfoList.Count));
       foreach (NetFramework.Auto.MonsterInfo _iter11 in MonsterInfoList)
       {
         _iter11.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.last) {
     field.Name = "last";
     field.Type = TType.Bool;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Last);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:30,代码来源:SCRefreshMonsterMsg.cs

示例10: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AddStateEffectFrameConfig");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (EffectName != null && __isset.effectName) {
     field.Name = "effectName";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(EffectName);
     oprot.WriteFieldEnd();
   }
   if (Pos != null && __isset.pos) {
     field.Name = "pos";
     field.Type = TType.Struct;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     Pos.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Rot != null && __isset.rot) {
     field.Name = "rot";
     field.Type = TType.Struct;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     Rot.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.instanceId) {
     field.Name = "instanceId";
     field.Type = TType.I32;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(InstanceId);
     oprot.WriteFieldEnd();
   }
   if (__isset.isAttach) {
     field.Name = "isAttach";
     field.Type = TType.Bool;
     field.ID = 50;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(IsAttach);
     oprot.WriteFieldEnd();
   }
   if (__isset.entityType) {
     field.Name = "entityType";
     field.Type = TType.I32;
     field.ID = 60;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)EntityType);
     oprot.WriteFieldEnd();
   }
   if (__isset.attachNpcId) {
     field.Name = "attachNpcId";
     field.Type = TType.I32;
     field.ID = 70;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(AttachNpcId);
     oprot.WriteFieldEnd();
   }
   if (AttachPoingName != null && __isset.attachPoingName) {
     field.Name = "attachPoingName";
     field.Type = TType.String;
     field.ID = 80;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AttachPoingName);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:71,代码来源:AddStateEffectFrameConfig.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("UserAcademics");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.displayOrderId) {
     field.Name = "displayOrderId";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(DisplayOrderId);
     oprot.WriteFieldEnd();
   }
   if (__isset.academicInstituteId) {
     field.Name = "academicInstituteId";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(AcademicInstituteId);
     oprot.WriteFieldEnd();
   }
   if (AcademicInstituteName != null && __isset.academicInstituteName) {
     field.Name = "academicInstituteName";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AcademicInstituteName);
     oprot.WriteFieldEnd();
   }
   if (City != null && __isset.city) {
     field.Name = "city";
     field.Type = TType.Struct;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     City.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Country != null && __isset.country) {
     field.Name = "country";
     field.Type = TType.Struct;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     Country.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (JoinedYear != null && __isset.joinedYear) {
     field.Name = "joinedYear";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(JoinedYear);
     oprot.WriteFieldEnd();
   }
   if (__isset.hasGraduated) {
     field.Name = "hasGraduated";
     field.Type = TType.Bool;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(HasGraduated);
     oprot.WriteFieldEnd();
   }
   if (GraduatedYear != null && __isset.graduatedYear) {
     field.Name = "graduatedYear";
     field.Type = TType.String;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(GraduatedYear);
     oprot.WriteFieldEnd();
   }
   if (Degree != null && __isset.degree) {
     field.Name = "degree";
     field.Type = TType.Struct;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     Degree.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Concentration != null && __isset.concentration) {
     field.Name = "concentration";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     Concentration.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.academicId) {
     field.Name = "academicId";
     field.Type = TType.I32;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(AcademicId);
     oprot.WriteFieldEnd();
   }
   if (AcademicInstitute != null && __isset.academicInstitute) {
     field.Name = "academicInstitute";
     field.Type = TType.String;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AcademicInstitute);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:101,代码来源:UserAcademics.cs

示例12: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SearchQuery");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Columns != null && __isset.Columns) {
     field.Name = "Columns";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Columns.Count));
       foreach (string _iter25 in Columns)
       {
         oprot.WriteString(_iter25);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.Count) {
     field.Name = "Count";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Count);
     oprot.WriteFieldEnd();
   }
   if (Highlights != null && __isset.Highlights) {
     field.Name = "Highlights";
     field.Type = TType.Struct;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     Highlights.Write(oprot);
     oprot.WriteFieldEnd();
   }
   field.Name = "IndexName";
   field.Type = TType.String;
   field.ID = 4;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(IndexName);
   oprot.WriteFieldEnd();
   if (OrderBy != null && __isset.OrderBy) {
     field.Name = "OrderBy";
     field.Type = TType.String;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(OrderBy);
     oprot.WriteFieldEnd();
   }
   if (__isset.Skip) {
     field.Name = "Skip";
     field.Type = TType.I32;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Skip);
     oprot.WriteFieldEnd();
   }
   field.Name = "QueryString";
   field.Type = TType.String;
   field.ID = 7;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(QueryString);
   oprot.WriteFieldEnd();
   if (MissingValueConfiguration != null && __isset.MissingValueConfiguration) {
     field.Name = "MissingValueConfiguration";
     field.Type = TType.Map;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I32, MissingValueConfiguration.Count));
       foreach (string _iter26 in MissingValueConfiguration.Keys)
       {
         oprot.WriteString(_iter26);
         oprot.WriteI32((int)MissingValueConfiguration[_iter26]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.GlobalMissingValue) {
     field.Name = "GlobalMissingValue";
     field.Type = TType.I32;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)GlobalMissingValue);
     oprot.WriteFieldEnd();
   }
   if (__isset.ReturnFlatResult) {
     field.Name = "ReturnFlatResult";
     field.Type = TType.Bool;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(ReturnFlatResult);
     oprot.WriteFieldEnd();
   }
   if (__isset.ReturnScore) {
     field.Name = "ReturnScore";
     field.Type = TType.Bool;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
//.........这里部分代码省略.........
开发者ID:NobodyLiveForever,项目名称:FlexSearch,代码行数:101,代码来源:SearchQuery.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ContactReportResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Mid != null && __isset.mid) {
     field.Name = "mid";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Mid);
     oprot.WriteFieldEnd();
   }
   if (__isset.exists) {
     field.Name = "exists";
     field.Type = TType.Bool;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Exists);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Banandana,项目名称:LineSharp,代码行数:23,代码来源:ContactReportResult.cs

示例14: Write

            public void Write(TProtocol oprot)
            {
                var struc = new TStruct("isTableEnabled_result");
                oprot.WriteStructBegin(struc);
                var field = new TField();

                if (this.__isset.success)
                {
                    field.Name = "Success";
                    field.Type = TType.Bool;
                    field.ID = 0;
                    oprot.WriteFieldBegin(field);
                    oprot.WriteBool(this.Success);
                    oprot.WriteFieldEnd();
                }
                else if (this.__isset.io)
                {
                    if (this.Io != null)
                    {
                        field.Name = "Io";
                        field.Type = TType.Struct;
                        field.ID = 1;
                        oprot.WriteFieldBegin(field);
                        this.Io.Write(oprot);
                        oprot.WriteFieldEnd();
                    }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }
开发者ID:nordbergm,项目名称:HBaseNet,代码行数:30,代码来源:Hbase.cs

示例15: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("TPut");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (Row != null && __isset.row) {
     field.Name = "row";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Row);
     oprot.WriteFieldEnd();
       }
       if (ColumnValues != null && __isset.columnValues) {
     field.Name = "columnValues";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, ColumnValues.Count));
       foreach (TColumnValue _iter11 in ColumnValues)
       {
     _iter11.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (__isset.timestamp) {
     field.Name = "timestamp";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Timestamp);
     oprot.WriteFieldEnd();
       }
       if (__isset.writeToWal) {
     field.Name = "writeToWal";
     field.Type = TType.Bool;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(WriteToWal);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:47,代码来源:TPut.cs


注:本文中的Thrift.Protocol.TProtocol.WriteBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。