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


C# TProtocol.WriteDouble方法代码示例

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


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

示例1: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("UserAttributes");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.defaultLocationName != null && __isset.defaultLocationName) {
     field.Name = "defaultLocationName";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.defaultLocationName);
     oprot.WriteFieldEnd();
       }
       if (__isset.defaultLatitude) {
     field.Name = "defaultLatitude";
     field.Type = TType.Double;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(this.defaultLatitude);
     oprot.WriteFieldEnd();
       }
       if (__isset.defaultLongitude) {
     field.Name = "defaultLongitude";
     field.Type = TType.Double;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(this.defaultLongitude);
     oprot.WriteFieldEnd();
       }
       if (__isset.preactivation) {
     field.Name = "preactivation";
     field.Type = TType.Bool;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(this.preactivation);
     oprot.WriteFieldEnd();
       }
       if (this.viewedPromotions != null && __isset.viewedPromotions) {
     field.Name = "viewedPromotions";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, this.viewedPromotions.Count));
       foreach (string _iter6 in this.viewedPromotions)
       {
     oprot.WriteString(_iter6);
     oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
       }
       if (this.incomingEmailAddress != null && __isset.incomingEmailAddress) {
     field.Name = "incomingEmailAddress";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.incomingEmailAddress);
     oprot.WriteFieldEnd();
       }
       if (this.recentMailedAddresses != null && __isset.recentMailedAddresses) {
     field.Name = "recentMailedAddresses";
     field.Type = TType.List;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, this.recentMailedAddresses.Count));
       foreach (string _iter7 in this.recentMailedAddresses)
       {
     oprot.WriteString(_iter7);
     oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
       }
       if (this.comments != null && __isset.comments) {
     field.Name = "comments";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.comments);
     oprot.WriteFieldEnd();
       }
       if (__isset.dateAgreedToTermsOfService) {
     field.Name = "dateAgreedToTermsOfService";
     field.Type = TType.I64;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(this.dateAgreedToTermsOfService);
     oprot.WriteFieldEnd();
       }
       if (__isset.maxReferrals) {
     field.Name = "maxReferrals";
     field.Type = TType.I32;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(this.maxReferrals);
     oprot.WriteFieldEnd();
       }
       if (__isset.referralCount) {
//.........这里部分代码省略.........
开发者ID:trayburn,项目名称:EverGTD,代码行数:101,代码来源:UserAttributes.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NoteAttributes");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.subjectDate) {
     field.Name = "subjectDate";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(SubjectDate);
     oprot.WriteFieldEnd();
   }
   if (__isset.latitude) {
     field.Name = "latitude";
     field.Type = TType.Double;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Latitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.longitude) {
     field.Name = "longitude";
     field.Type = TType.Double;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Longitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.altitude) {
     field.Name = "altitude";
     field.Type = TType.Double;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Altitude);
     oprot.WriteFieldEnd();
   }
   if (Author != null && __isset.author) {
     field.Name = "author";
     field.Type = TType.String;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Author);
     oprot.WriteFieldEnd();
   }
   if (Source != null && __isset.source) {
     field.Name = "source";
     field.Type = TType.String;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Source);
     oprot.WriteFieldEnd();
   }
   if (SourceURL != null && __isset.sourceURL) {
     field.Name = "sourceURL";
     field.Type = TType.String;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceURL);
     oprot.WriteFieldEnd();
   }
   if (SourceApplication != null && __isset.sourceApplication) {
     field.Name = "sourceApplication";
     field.Type = TType.String;
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceApplication);
     oprot.WriteFieldEnd();
   }
   if (__isset.shareDate) {
     field.Name = "shareDate";
     field.Type = TType.I64;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(ShareDate);
     oprot.WriteFieldEnd();
   }
   if (PlaceName != null && __isset.placeName) {
     field.Name = "placeName";
     field.Type = TType.String;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(PlaceName);
     oprot.WriteFieldEnd();
   }
   if (ContentClass != null && __isset.contentClass) {
     field.Name = "contentClass";
     field.Type = TType.String;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ContentClass);
     oprot.WriteFieldEnd();
   }
   if (ApplicationData != null && __isset.applicationData) {
     field.Name = "applicationData";
     field.Type = TType.Struct;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     ApplicationData.Write(oprot);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:arisu1000,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:NoteAttributes.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Runtime_MoveEffectFrameConfig");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (InstanceId != null && __isset.instanceId) {
     field.Name = "instanceId";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(InstanceId);
     oprot.WriteFieldEnd();
   }
   if (__isset.time) {
     field.Name = "time";
     field.Type = TType.Double;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Time);
     oprot.WriteFieldEnd();
   }
   if (__isset.high) {
     field.Name = "high";
     field.Type = TType.Double;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(High);
     oprot.WriteFieldEnd();
   }
   if (__isset.targetType) {
     field.Name = "targetType";
     field.Type = TType.I32;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(TargetType);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:39,代码来源:Runtime_MoveEffectFrameConfig.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Geolocation");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.longitude) {
     field.Name = "longitude";
     field.Type = TType.Double;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Longitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.latitude) {
     field.Name = "latitude";
     field.Type = TType.Double;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Latitude);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Banandana,项目名称:LineSharp,代码行数:23,代码来源:Geolocation.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NoteAttributes");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.subjectDate) {
     field.Name = "subjectDate";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(SubjectDate);
     oprot.WriteFieldEnd();
   }
   if (__isset.latitude) {
     field.Name = "latitude";
     field.Type = TType.Double;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Latitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.longitude) {
     field.Name = "longitude";
     field.Type = TType.Double;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Longitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.altitude) {
     field.Name = "altitude";
     field.Type = TType.Double;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Altitude);
     oprot.WriteFieldEnd();
   }
   if (Author != null && __isset.author) {
     field.Name = "author";
     field.Type = TType.String;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Author);
     oprot.WriteFieldEnd();
   }
   if (Source != null && __isset.source) {
     field.Name = "source";
     field.Type = TType.String;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Source);
     oprot.WriteFieldEnd();
   }
   if (SourceURL != null && __isset.sourceURL) {
     field.Name = "sourceURL";
     field.Type = TType.String;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceURL);
     oprot.WriteFieldEnd();
   }
   if (SourceApplication != null && __isset.sourceApplication) {
     field.Name = "sourceApplication";
     field.Type = TType.String;
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceApplication);
     oprot.WriteFieldEnd();
   }
   if (__isset.shareDate) {
     field.Name = "shareDate";
     field.Type = TType.I64;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(ShareDate);
     oprot.WriteFieldEnd();
   }
   if (PlaceName != null && __isset.placeName) {
     field.Name = "placeName";
     field.Type = TType.String;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(PlaceName);
     oprot.WriteFieldEnd();
   }
   if (ContentClass != null && __isset.contentClass) {
     field.Name = "contentClass";
     field.Type = TType.String;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ContentClass);
     oprot.WriteFieldEnd();
   }
   if (ApplicationData != null && __isset.applicationData) {
     field.Name = "applicationData";
     field.Type = TType.Struct;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     ApplicationData.Write(oprot);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:zhuangfangwang,项目名称:ise,代码行数:101,代码来源:NoteAttributes.cs

示例6: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("UserAttributes");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (DefaultLocationName != null && __isset.defaultLocationName) {
     field.Name = "defaultLocationName";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DefaultLocationName);
     oprot.WriteFieldEnd();
   }
   if (__isset.defaultLatitude) {
     field.Name = "defaultLatitude";
     field.Type = TType.Double;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(DefaultLatitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.defaultLongitude) {
     field.Name = "defaultLongitude";
     field.Type = TType.Double;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(DefaultLongitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.preactivation) {
     field.Name = "preactivation";
     field.Type = TType.Bool;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Preactivation);
     oprot.WriteFieldEnd();
   }
   if (ViewedPromotions != null && __isset.viewedPromotions) {
     field.Name = "viewedPromotions";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, ViewedPromotions.Count));
       foreach (string _iter6 in ViewedPromotions)
       {
         oprot.WriteString(_iter6);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (IncomingEmailAddress != null && __isset.incomingEmailAddress) {
     field.Name = "incomingEmailAddress";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(IncomingEmailAddress);
     oprot.WriteFieldEnd();
   }
   if (RecentMailedAddresses != null && __isset.recentMailedAddresses) {
     field.Name = "recentMailedAddresses";
     field.Type = TType.List;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, RecentMailedAddresses.Count));
       foreach (string _iter7 in RecentMailedAddresses)
       {
         oprot.WriteString(_iter7);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (Comments != null && __isset.comments) {
     field.Name = "comments";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Comments);
     oprot.WriteFieldEnd();
   }
   if (__isset.dateAgreedToTermsOfService) {
     field.Name = "dateAgreedToTermsOfService";
     field.Type = TType.I64;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(DateAgreedToTermsOfService);
     oprot.WriteFieldEnd();
   }
   if (__isset.maxReferrals) {
     field.Name = "maxReferrals";
     field.Type = TType.I32;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(MaxReferrals);
     oprot.WriteFieldEnd();
   }
   if (__isset.referralCount) {
     field.Name = "referralCount";
//.........这里部分代码省略.........
开发者ID:arisu1000,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:UserAttributes.cs

示例7: Write


//.........这里部分代码省略.........
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Ip);
     oprot.WriteFieldEnd();
   }
   if (__isset.isOp) {
     field.Name = "isOp";
     field.Type = TType.Bool;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(IsOp);
     oprot.WriteFieldEnd();
   }
   if (__isset.foodLevel) {
     field.Name = "foodLevel";
     field.Type = TType.I32;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(FoodLevel);
     oprot.WriteFieldEnd();
   }
   if (__isset.health) {
     field.Name = "health";
     field.Type = TType.I32;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Health);
     oprot.WriteFieldEnd();
   }
   if (__isset.exhaustion) {
     field.Name = "exhaustion";
     field.Type = TType.Double;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Exhaustion);
     oprot.WriteFieldEnd();
   }
   if (__isset.firstPlayed) {
     field.Name = "firstPlayed";
     field.Type = TType.I64;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(FirstPlayed);
     oprot.WriteFieldEnd();
   }
   if (__isset.lastPlayed) {
     field.Name = "lastPlayed";
     field.Type = TType.I64;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(LastPlayed);
     oprot.WriteFieldEnd();
   }
   if (__isset.isBanned) {
     field.Name = "isBanned";
     field.Type = TType.Bool;
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(IsBanned);
     oprot.WriteFieldEnd();
   }
   if (__isset.isWhitelisted) {
     field.Name = "isWhitelisted";
     field.Type = TType.Bool;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(IsWhitelisted);
开发者ID:JBou,项目名称:Minecraft-Server-Launcher,代码行数:67,代码来源:Player.cs

示例8: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Location");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Title != null && __isset.title) {
     field.Name = "title";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Title);
     oprot.WriteFieldEnd();
   }
   if (Address != null && __isset.address) {
     field.Name = "address";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Address);
     oprot.WriteFieldEnd();
   }
   if (__isset.latitude) {
     field.Name = "latitude";
     field.Type = TType.Double;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Latitude);
     oprot.WriteFieldEnd();
   }
   if (__isset.longitude) {
     field.Name = "longitude";
     field.Type = TType.Double;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Longitude);
     oprot.WriteFieldEnd();
   }
   if (Phone != null && __isset.phone) {
     field.Name = "phone";
     field.Type = TType.String;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Phone);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Banandana,项目名称:LineSharp,代码行数:47,代码来源:Location.cs

示例9: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CAuxFitnessInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (__isset.value) {
     field.Name = "value";
     field.Type = TType.Double;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Value);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:JonMerlevede,项目名称:NeatSim,代码行数:23,代码来源:CAuxFitnessInfo.cs

示例10: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Ad");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.id) {
     field.Name = "id";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Id);
     oprot.WriteFieldEnd();
   }
   if (__isset.width) {
     field.Name = "width";
     field.Type = TType.I16;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Width);
     oprot.WriteFieldEnd();
   }
   if (__isset.height) {
     field.Name = "height";
     field.Type = TType.I16;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Height);
     oprot.WriteFieldEnd();
   }
   if (AdvertiserName != null && __isset.advertiserName) {
     field.Name = "advertiserName";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AdvertiserName);
     oprot.WriteFieldEnd();
   }
   if (ImageUrl != null && __isset.imageUrl) {
     field.Name = "imageUrl";
     field.Type = TType.String;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ImageUrl);
     oprot.WriteFieldEnd();
   }
   if (DestinationUrl != null && __isset.destinationUrl) {
     field.Name = "destinationUrl";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DestinationUrl);
     oprot.WriteFieldEnd();
   }
   if (__isset.displaySeconds) {
     field.Name = "displaySeconds";
     field.Type = TType.I16;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(DisplaySeconds);
     oprot.WriteFieldEnd();
   }
   if (__isset.score) {
     field.Name = "score";
     field.Type = TType.Double;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Score);
     oprot.WriteFieldEnd();
   }
   if (Image != null && __isset.image) {
     field.Name = "image";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Image);
     oprot.WriteFieldEnd();
   }
   if (ImageMime != null && __isset.imageMime) {
     field.Name = "imageMime";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ImageMime);
     oprot.WriteFieldEnd();
   }
   if (Html != null && __isset.html) {
     field.Name = "html";
     field.Type = TType.String;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Html);
     oprot.WriteFieldEnd();
   }
   if (__isset.displayFrequency) {
     field.Name = "displayFrequency";
     field.Type = TType.Double;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(DisplayFrequency);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:phillco,项目名称:HellForge,代码行数:101,代码来源:Ad.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("FichaAtendimentoIndividualChildThrift");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (NumeroProntuario != null && __isset.numeroProntuario) {
     field.Name = "numeroProntuario";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(NumeroProntuario);
     oprot.WriteFieldEnd();
   }
   if (Cns != null && __isset.cns) {
     field.Name = "cns";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Cns);
     oprot.WriteFieldEnd();
   }
   if (__isset.dataNascimento) {
     field.Name = "dataNascimento";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(DataNascimento);
     oprot.WriteFieldEnd();
   }
   if (__isset.localDeAtendimento) {
     field.Name = "localDeAtendimento";
     field.Type = TType.I64;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(LocalDeAtendimento);
     oprot.WriteFieldEnd();
   }
   if (__isset.sexo) {
     field.Name = "sexo";
     field.Type = TType.I64;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Sexo);
     oprot.WriteFieldEnd();
   }
   if (__isset.turno) {
     field.Name = "turno";
     field.Type = TType.I64;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Turno);
     oprot.WriteFieldEnd();
   }
   if (__isset.tipoAtendimento) {
     field.Name = "tipoAtendimento";
     field.Type = TType.I64;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(TipoAtendimento);
     oprot.WriteFieldEnd();
   }
   if (__isset.pesoAcompanhamentoNutricional) {
     field.Name = "pesoAcompanhamentoNutricional";
     field.Type = TType.Double;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(PesoAcompanhamentoNutricional);
     oprot.WriteFieldEnd();
   }
   if (__isset.alturaAcompanhamentoNutricional) {
     field.Name = "alturaAcompanhamentoNutricional";
     field.Type = TType.Double;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(AlturaAcompanhamentoNutricional);
     oprot.WriteFieldEnd();
   }
   if (__isset.aleitamentoMaterno) {
     field.Name = "aleitamentoMaterno";
     field.Type = TType.I64;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(AleitamentoMaterno);
     oprot.WriteFieldEnd();
   }
   if (__isset.dumDaGestante) {
     field.Name = "dumDaGestante";
     field.Type = TType.I64;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(DumDaGestante);
     oprot.WriteFieldEnd();
   }
   if (__isset.idadeGestacional) {
     field.Name = "idadeGestacional";
     field.Type = TType.I32;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(IdadeGestacional);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:esusab,项目名称:integracao,代码行数:101,代码来源:FichaAtendimentoIndividualChildThrift.cs

示例12: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CharSpeedMove");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.speed) {
     field.Name = "speed";
     field.Type = TType.Double;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Speed);
     oprot.WriteFieldEnd();
   }
   if (Target != null && __isset.target) {
     field.Name = "target";
     field.Type = TType.Struct;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     Target.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:23,代码来源:CharSpeedMove.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Vector3");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.x) {
     field.Name = "x";
     field.Type = TType.Double;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(X);
     oprot.WriteFieldEnd();
   }
   if (__isset.y) {
     field.Name = "y";
     field.Type = TType.Double;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Y);
     oprot.WriteFieldEnd();
   }
   if (__isset.z) {
     field.Name = "z";
     field.Type = TType.Double;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Z);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:yakolla,项目名称:HelloVertX,代码行数:31,代码来源:Vector3.cs

示例14: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("MusicGameNoteKey");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.time) {
     field.Name = "time";
     field.Type = TType.Double;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Time);
     oprot.WriteFieldEnd();
   }
   if (__isset.key) {
     field.Name = "key";
     field.Type = TType.I32;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Key);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:23,代码来源:MusicGameNoteKey.cs

示例15: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ActionFrameData");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.time) {
     field.Name = "time";
     field.Type = TType.Double;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Time);
     oprot.WriteFieldEnd();
   }
   if (__isset.type) {
     field.Name = "type";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Type);
     oprot.WriteFieldEnd();
   }
   if (TargetIDs != null && __isset.targetIDs) {
     field.Name = "targetIDs";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I32, TargetIDs.Count));
       foreach (int _iter15 in TargetIDs)
       {
         oprot.WriteI32(_iter15);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (ShakeCameraFrame != null && __isset.shakeCameraFrame) {
     field.Name = "shakeCameraFrame";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     ShakeCameraFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (MoveCameraFrame != null && __isset.moveCameraFrame) {
     field.Name = "moveCameraFrame";
     field.Type = TType.Struct;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     MoveCameraFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (PlayAudioFrame != null && __isset.playAudioFrame) {
     field.Name = "playAudioFrame";
     field.Type = TType.Struct;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     PlayAudioFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (BoolFrame != null && __isset.boolFrame) {
     field.Name = "boolFrame";
     field.Type = TType.Struct;
     field.ID = 101;
     oprot.WriteFieldBegin(field);
     BoolFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (StringFrame != null && __isset.stringFrame) {
     field.Name = "stringFrame";
     field.Type = TType.Struct;
     field.ID = 102;
     oprot.WriteFieldBegin(field);
     StringFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (MoveTransformFrame != null && __isset.moveTransformFrame) {
     field.Name = "moveTransformFrame";
     field.Type = TType.Struct;
     field.ID = 103;
     oprot.WriteFieldBegin(field);
     MoveTransformFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Vector3Frame != null && __isset.vector3Frame) {
     field.Name = "vector3Frame";
     field.Type = TType.Struct;
     field.ID = 104;
     oprot.WriteFieldBegin(field);
     Vector3Frame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (AddNpcFrame != null && __isset.addNpcFrame) {
     field.Name = "addNpcFrame";
     field.Type = TType.Struct;
     field.ID = 105;
     oprot.WriteFieldBegin(field);
     AddNpcFrame.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Runtime_CreateEffect != null && __isset.runtime_CreateEffect) {
//.........这里部分代码省略.........
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:101,代码来源:ActionFrameData.cs


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