當前位置: 首頁>>代碼示例>>C#>>正文


C# Protocol.TField類代碼示例

本文整理匯總了C#中Thrift.Protocol.TField的典型用法代碼示例。如果您正苦於以下問題:C# TField類的具體用法?C# TField怎麽用?C# TField使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TField類屬於Thrift.Protocol命名空間,在下文中一共展示了TField類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("IndexStatusResponse");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "Status";
   field.Type = TType.I32;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Status);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:NobodyLiveForever,項目名稱:FlexSearch,代碼行數:13,代碼來源:IndexStatusResponse.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("InvalidRequestException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "why";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Why);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:cosh,項目名稱:C4,代碼行數:13,代碼來源:InvalidRequestException.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AlreadyAliveException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "msg";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Msg);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:13,代碼來源:AlreadyAliveException.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LSSupervisorId");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "supervisor_id";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Supervisor_id);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:13,代碼來源:LSSupervisorId.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCChatResultMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "result";
   field.Type = TType.Byte;
   field.ID = 10;
   oprot.WriteFieldBegin(field);
   oprot.WriteByte(Result);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:13,代碼來源:SCChatResultMsg.cs

示例6: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSChatSettingMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "chatSetting";
   field.Type = TType.Struct;
   field.ID = 10;
   oprot.WriteFieldBegin(field);
   ChatSetting.Write(oprot);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:13,代碼來源:CSChatSettingMsg.cs

示例7: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCSystemInfoMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "systemInfo";
   field.Type = TType.Struct;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   SystemInfo.Write(oprot);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:13,代碼來源:SCSystemInfoMsg.cs

示例8: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("StoreAggregatesException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Msg != null && __isset.msg) {
     field.Name = "msg";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Msg);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:theburningmonk,項目名稱:Medidata.ZipkinTracerModule,代碼行數:15,代碼來源:StoreAggregatesException.cs

示例9: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSHeroMaxExtend");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.extendTimes) {
     field.Name = "extendTimes";
     field.Type = TType.I16;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(ExtendTimes);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:wuxin0602,項目名稱:Nothing,代碼行數:15,代碼來源:CSHeroMaxExtend.cs

示例10: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCSingleSceneCharInfoSyncMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (SceneChar != null && __isset.sceneChar) {
     field.Name = "sceneChar";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     SceneChar.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:15,代碼來源:SCSingleSceneCharInfoSyncMsg.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSSelectFriendMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (FriendArr != null && __isset.friendArr) {
     field.Name = "friendArr";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(FriendArr);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:15,代碼來源:CSSelectFriendMsg.cs

示例12: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCHeroSkillQualityLevelUpMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (FailSystemInfo != null && __isset.failSystemInfo) {
     field.Name = "failSystemInfo";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     FailSystemInfo.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:15,代碼來源:SCHeroSkillQualityLevelUpMsg.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TowerDefenseStageResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.currDefTargetHp) {
     field.Name = "currDefTargetHp";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(CurrDefTargetHp);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:15,代碼來源:TowerDefenseStageResult.cs

示例14: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("GetInfoOptions");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.num_err_choice) {
     field.Name = "num_err_choice";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Num_err_choice);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:15,代碼來源:GetInfoOptions.cs

示例15: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSUpdateArmyBulletinBoardContentMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (BulletinBoardContent != null && __isset.bulletinBoardContent) {
     field.Name = "bulletinBoardContent";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(BulletinBoardContent);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:15,代碼來源:CSUpdateArmyBulletinBoardContentMsg.cs


注:本文中的Thrift.Protocol.TField類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。