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


C# TProtocol.WriteI64方法代码示例

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


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

示例1: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CfSplit");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Start_token != null && __isset.start_token) {
     field.Name = "start_token";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Start_token);
     oprot.WriteFieldEnd();
   }
   if (End_token != null && __isset.end_token) {
     field.Name = "end_token";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(End_token);
     oprot.WriteFieldEnd();
   }
   if (__isset.row_count) {
     field.Name = "row_count";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Row_count);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:pchalamet,项目名称:cassandra-sharp,代码行数:31,代码来源:CfSplit.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NodeInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "node";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Node);
   oprot.WriteFieldEnd();
   field.Name = "port";
   field.Type = TType.Set;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteSetBegin(new TSet(TType.I64, Port.Count));
     foreach (long _iter184 in Port)
     {
       oprot.WriteI64(_iter184);
     }
     oprot.WriteSetEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:26,代码来源:NodeInfo.cs

示例3: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("CounterColumn");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Name);
     oprot.WriteFieldEnd();
       }
       if (__isset.value) {
     field.Name = "value";
     field.Type = TType.I64;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Value);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:HappiestTeam,项目名称:Spikes,代码行数:24,代码来源:CounterColumn.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Bet");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.amount) {
     field.Name = "amount";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Amount);
     oprot.WriteFieldEnd();
   }
   if (__isset.type) {
     field.Name = "type";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Type);
     oprot.WriteFieldEnd();
   }
   if (__isset.new_pot_size) {
     field.Name = "new_pot_size";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(New_pot_size);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:pezia,项目名称:poker-croupier,代码行数:31,代码来源:Bet.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCFriendApplySucc");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.friendUuid) {
     field.Name = "friendUuid";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(FriendUuid);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:wuxin0602,项目名称:Nothing,代码行数:15,代码来源:SCFriendApplySucc.cs

示例6: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("FichaAtendimentoDomiciliarChildThrift");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.turno) {
     field.Name = "turno";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Turno);
     oprot.WriteFieldEnd();
   }
   if (CnsCidadao != null && __isset.cnsCidadao) {
     field.Name = "cnsCidadao";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(CnsCidadao);
     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.sexo) {
     field.Name = "sexo";
     field.Type = TType.I64;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Sexo);
     oprot.WriteFieldEnd();
   }
   if (__isset.localAtendimento) {
     field.Name = "localAtendimento";
     field.Type = TType.I64;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(LocalAtendimento);
     oprot.WriteFieldEnd();
   }
   if (__isset.atencaoDomiciliarModalidade) {
     field.Name = "atencaoDomiciliarModalidade";
     field.Type = TType.I64;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(AtencaoDomiciliarModalidade);
     oprot.WriteFieldEnd();
   }
   if (__isset.tipoAtendimento) {
     field.Name = "tipoAtendimento";
     field.Type = TType.I64;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(TipoAtendimento);
     oprot.WriteFieldEnd();
   }
   if (CondicoesAvaliadas != null && __isset.condicoesAvaliadas) {
     field.Name = "condicoesAvaliadas";
     field.Type = TType.List;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, CondicoesAvaliadas.Count));
       foreach (long _iter9 in CondicoesAvaliadas)
       {
         oprot.WriteI64(_iter9);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Cid != null && __isset.cid) {
     field.Name = "cid";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Cid);
     oprot.WriteFieldEnd();
   }
   if (Ciap != null && __isset.ciap) {
     field.Name = "ciap";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Ciap);
     oprot.WriteFieldEnd();
   }
   if (Procedimentos != null && __isset.procedimentos) {
     field.Name = "procedimentos";
     field.Type = TType.List;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Procedimentos.Count));
       foreach (string _iter10 in Procedimentos)
       {
//.........这里部分代码省略.........
开发者ID:esusab,项目名称:integracao,代码行数:101,代码来源:FichaAtendimentoDomiciliarChildThrift.cs

示例7: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCBeginLoadStageMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (HeroGroup1List != null && __isset.heroGroup1List) {
     field.Name = "heroGroup1List";
     field.Type = TType.Map;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup1List.Count));
       foreach (int _iter29 in HeroGroup1List.Keys)
       {
         oprot.WriteI32(_iter29);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup1List[_iter29].Count));
           foreach (long _iter30 in HeroGroup1List[_iter29])
           {
             oprot.WriteI64(_iter30);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (HeroGroup2List != null && __isset.heroGroup2List) {
     field.Name = "heroGroup2List";
     field.Type = TType.Map;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup2List.Count));
       foreach (int _iter31 in HeroGroup2List.Keys)
       {
         oprot.WriteI32(_iter31);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup2List[_iter31].Count));
           foreach (long _iter32 in HeroGroup2List[_iter31])
           {
             oprot.WriteI64(_iter32);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (HeroGroup3List != null && __isset.heroGroup3List) {
     field.Name = "heroGroup3List";
     field.Type = TType.Map;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup3List.Count));
       foreach (int _iter33 in HeroGroup3List.Keys)
       {
         oprot.WriteI32(_iter33);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup3List[_iter33].Count));
           foreach (long _iter34 in HeroGroup3List[_iter33])
           {
             oprot.WriteI64(_iter34);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:76,代码来源:SCBeginLoadStageMsg.cs

示例8: Write

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

                if (this.__isset.success)
                {
                    field.Name = "Success";
                    field.Type = TType.I64;
                    field.ID = 0;
                    oprot.WriteFieldBegin(field);
                    oprot.WriteI64(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();
                    }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:30,代码来源:ThriftHiveMetastore.cs

示例9: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Competitor");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (__isset.stack) {
     field.Name = "stack";
     field.Type = TType.I64;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Stack);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:pezia,项目名称:poker-croupier,代码行数:23,代码来源:Competitor.cs

示例10: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ChatMutedInstance");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (InstanceId != null && __isset.instanceId) {
     field.Name = "instanceId";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(InstanceId);
     oprot.WriteFieldEnd();
   }
   if (__isset.timestamp) {
     field.Name = "timestamp";
     field.Type = TType.I64;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Timestamp);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:23,代码来源:ChatMutedInstance.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Product");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (ProductId != null && __isset.productId) {
     field.Name = "productId";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ProductId);
     oprot.WriteFieldEnd();
   }
   if (__isset.packageId) {
     field.Name = "packageId";
     field.Type = TType.I64;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(PackageId);
     oprot.WriteFieldEnd();
   }
   if (__isset.version) {
     field.Name = "version";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Version);
     oprot.WriteFieldEnd();
   }
   if (AuthorName != null && __isset.authorName) {
     field.Name = "authorName";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AuthorName);
     oprot.WriteFieldEnd();
   }
   if (__isset.onSale) {
     field.Name = "onSale";
     field.Type = TType.Bool;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(OnSale);
     oprot.WriteFieldEnd();
   }
   if (__isset.validDays) {
     field.Name = "validDays";
     field.Type = TType.I32;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(ValidDays);
     oprot.WriteFieldEnd();
   }
   if (__isset.saleType) {
     field.Name = "saleType";
     field.Type = TType.I32;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(SaleType);
     oprot.WriteFieldEnd();
   }
   if (Copyright != null && __isset.copyright) {
     field.Name = "copyright";
     field.Type = TType.String;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Copyright);
     oprot.WriteFieldEnd();
   }
   if (Title != null && __isset.title) {
     field.Name = "title";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Title);
     oprot.WriteFieldEnd();
   }
   if (DescriptionText != null && __isset.descriptionText) {
     field.Name = "descriptionText";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DescriptionText);
     oprot.WriteFieldEnd();
   }
   if (__isset.shopOrderId) {
     field.Name = "shopOrderId";
     field.Type = TType.I64;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(ShopOrderId);
     oprot.WriteFieldEnd();
   }
   if (FromMid != null && __isset.fromMid) {
     field.Name = "fromMid";
     field.Type = TType.String;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(FromMid);
     oprot.WriteFieldEnd();
   }
//.........这里部分代码省略.........
开发者ID:Banandana,项目名称:LineSharp,代码行数:101,代码来源:Product.cs

示例12: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("eBayItem");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (__isset.EbayTokenID)
     {
         field.Name = "EbayTokenID";
         field.Type = TType.I32;
         field.ID = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteI32(EbayTokenID);
         oprot.WriteFieldEnd();
     }
     if (__isset.SiteID)
     {
         field.Name = "SiteID";
         field.Type = TType.I32;
         field.ID = 2;
         oprot.WriteFieldBegin(field);
         oprot.WriteI32(SiteID);
         oprot.WriteFieldEnd();
     }
     if (__isset.PrimaryCategoryID)
     {
         field.Name = "PrimaryCategoryID";
         field.Type = TType.I64;
         field.ID = 3;
         oprot.WriteFieldBegin(field);
         oprot.WriteI64(PrimaryCategoryID);
         oprot.WriteFieldEnd();
     }
     if (__isset.SecondaryCategoryID)
     {
         field.Name = "SecondaryCategoryID";
         field.Type = TType.I64;
         field.ID = 4;
         oprot.WriteFieldBegin(field);
         oprot.WriteI64(SecondaryCategoryID);
         oprot.WriteFieldEnd();
     }
     if (Title != null && __isset.Title)
     {
         field.Name = "Title";
         field.Type = TType.String;
         field.ID = 5;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(Title);
         oprot.WriteFieldEnd();
     }
     if (SubTitle != null && __isset.SubTitle)
     {
         field.Name = "SubTitle";
         field.Type = TType.String;
         field.ID = 6;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(SubTitle);
         oprot.WriteFieldEnd();
     }
     if (ItemCondition != null && __isset.ItemCondition)
     {
         field.Name = "ItemCondition";
         field.Type = TType.String;
         field.ID = 7;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(ItemCondition);
         oprot.WriteFieldEnd();
     }
     if (ItemSpecifics != null && __isset.ItemSpecifics)
     {
         field.Name = "ItemSpecifics";
         field.Type = TType.Map;
         field.ID = 8;
         oprot.WriteFieldBegin(field);
         {
             oprot.WriteMapBegin(new TMap(TType.String, TType.String, ItemSpecifics.Count));
             foreach (string _iter7 in ItemSpecifics.Keys)
             {
                 oprot.WriteString(_iter7);
                 oprot.WriteString(ItemSpecifics[_iter7]);
             }
             oprot.WriteMapEnd();
         }
         oprot.WriteFieldEnd();
     }
     if (ListingType != null && __isset.ListingType)
     {
         field.Name = "ListingType";
         field.Type = TType.String;
         field.ID = 9;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(ListingType);
         oprot.WriteFieldEnd();
     }
     if (BestOffer != null && __isset.BestOffer)
     {
         field.Name = "BestOffer";
         field.Type = TType.String;
         field.ID = 10;
         oprot.WriteFieldBegin(field);
//.........这里部分代码省略.........
开发者ID:tomochandv,项目名称:Test,代码行数:101,代码来源:eBayItem.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCBeatBackMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.userUniqueId) {
     field.Name = "userUniqueId";
     field.Type = TType.I64;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(UserUniqueId);
     oprot.WriteFieldEnd();
   }
   if (Dir != null && __isset.dir) {
     field.Name = "dir";
     field.Type = TType.Struct;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     Dir.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (AffectTargetList != null && __isset.affectTargetList) {
     field.Name = "affectTargetList";
     field.Type = TType.List;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, AffectTargetList.Count));
       foreach (long _iter75 in AffectTargetList)
       {
         oprot.WriteI64(_iter75);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.range) {
     field.Name = "range";
     field.Type = TType.I16;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Range);
     oprot.WriteFieldEnd();
   }
   if (__isset.time) {
     field.Name = "time";
     field.Type = TType.I32;
     field.ID = 50;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Time);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:54,代码来源:SCBeatBackMsg.cs

示例14: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("HeroEquipmentInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.templateId) {
     field.Name = "templateId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(TemplateId);
     oprot.WriteFieldEnd();
   }
   if (__isset.uniqueId) {
     field.Name = "uniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(UniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.putOnUid) {
     field.Name = "putOnUid";
     field.Type = TType.I64;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(PutOnUid);
     oprot.WriteFieldEnd();
   }
   if (__isset.enhanceLevel) {
     field.Name = "enhanceLevel";
     field.Type = TType.I16;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(EnhanceLevel);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:39,代码来源:HeroEquipmentInfo.cs

示例15: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AuthenticationResult");
   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 (AuthenticationToken != null && __isset.authenticationToken) {
     field.Name = "authenticationToken";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AuthenticationToken);
     oprot.WriteFieldEnd();
   }
   if (__isset.expiration) {
     field.Name = "expiration";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Expiration);
     oprot.WriteFieldEnd();
   }
   if (User != null && __isset.user) {
     field.Name = "user";
     field.Type = TType.Struct;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     User.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (PublicUserInfo != null && __isset.publicUserInfo) {
     field.Name = "publicUserInfo";
     field.Type = TType.Struct;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     PublicUserInfo.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (NoteStoreUrl != null && __isset.noteStoreUrl) {
     field.Name = "noteStoreUrl";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(NoteStoreUrl);
     oprot.WriteFieldEnd();
   }
   if (WebApiUrlPrefix != null && __isset.webApiUrlPrefix) {
     field.Name = "webApiUrlPrefix";
     field.Type = TType.String;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(WebApiUrlPrefix);
     oprot.WriteFieldEnd();
   }
   if (__isset.secondFactorRequired) {
     field.Name = "secondFactorRequired";
     field.Type = TType.Bool;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(SecondFactorRequired);
     oprot.WriteFieldEnd();
   }
   if (SecondFactorDeliveryHint != null && __isset.secondFactorDeliveryHint) {
     field.Name = "secondFactorDeliveryHint";
     field.Type = TType.String;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SecondFactorDeliveryHint);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:79,代码来源:AuthenticationResult.cs


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