コード例 #1
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 0:
         if (field.Type == TType.Struct) {
           Success = new Evernote.EDAM.Type.Notebook();
           Success.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           UserException = new Evernote.EDAM.Error.EDAMUserException();
           UserException.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           SystemException = new Evernote.EDAM.Error.EDAMSystemException();
           SystemException.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #2
0
ファイル: SyncChunk.cs プロジェクト: trayburn/EverGTD
 public void Read(TProtocol iprot)
 {
     TField field;
       iprot.ReadStructBegin();
       while (true)
       {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) {
       break;
     }
     switch (field.ID)
     {
       case 1:
     if (field.Type == TType.I64) {
       this.currentTime = iprot.ReadI64();
       this.__isset.currentTime = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.I32) {
       this.chunkHighUSN = iprot.ReadI32();
       this.__isset.chunkHighUSN = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 3:
     if (field.Type == TType.I32) {
       this.updateCount = iprot.ReadI32();
       this.__isset.updateCount = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 4:
     if (field.Type == TType.List) {
       {
         this.notes = new List<Evernote.EDAM.Type.Note>();
         TList _list0 = iprot.ReadListBegin();
         for( int _i1 = 0; _i1 < _list0.Count; ++_i1)
         {
           Evernote.EDAM.Type.Note _elem2 = new Evernote.EDAM.Type.Note();
           _elem2 = new Evernote.EDAM.Type.Note();
           _elem2.Read(iprot);
           this.notes.Add(_elem2);
         }
         iprot.ReadListEnd();
       }
       this.__isset.notes = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 5:
     if (field.Type == TType.List) {
       {
         this.notebooks = new List<Evernote.EDAM.Type.Notebook>();
         TList _list3 = iprot.ReadListBegin();
         for( int _i4 = 0; _i4 < _list3.Count; ++_i4)
         {
           Evernote.EDAM.Type.Notebook _elem5 = new Evernote.EDAM.Type.Notebook();
           _elem5 = new Evernote.EDAM.Type.Notebook();
           _elem5.Read(iprot);
           this.notebooks.Add(_elem5);
         }
         iprot.ReadListEnd();
       }
       this.__isset.notebooks = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 6:
     if (field.Type == TType.List) {
       {
         this.tags = new List<Evernote.EDAM.Type.Tag>();
         TList _list6 = iprot.ReadListBegin();
         for( int _i7 = 0; _i7 < _list6.Count; ++_i7)
         {
           Evernote.EDAM.Type.Tag _elem8 = new Evernote.EDAM.Type.Tag();
           _elem8 = new Evernote.EDAM.Type.Tag();
           _elem8.Read(iprot);
           this.tags.Add(_elem8);
         }
         iprot.ReadListEnd();
       }
       this.__isset.tags = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 7:
     if (field.Type == TType.List) {
       {
         this.searches = new List<Evernote.EDAM.Type.SavedSearch>();
         TList _list9 = iprot.ReadListBegin();
         for( int _i10 = 0; _i10 < _list9.Count; ++_i10)
         {
           Evernote.EDAM.Type.SavedSearch _elem11 = new Evernote.EDAM.Type.SavedSearch();
           _elem11 = new Evernote.EDAM.Type.SavedSearch();
           _elem11.Read(iprot);
           this.searches.Add(_elem11);
         }
         iprot.ReadListEnd();
       }
       this.__isset.searches = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 8:
     if (field.Type == TType.List) {
       {
         this.resources = new List<Evernote.EDAM.Type.Resource>();
         TList _list12 = iprot.ReadListBegin();
         for( int _i13 = 0; _i13 < _list12.Count; ++_i13)
         {
           Evernote.EDAM.Type.Resource _elem14 = new Evernote.EDAM.Type.Resource();
           _elem14 = new Evernote.EDAM.Type.Resource();
           _elem14.Read(iprot);
           this.resources.Add(_elem14);
         }
         iprot.ReadListEnd();
       }
       this.__isset.resources = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 9:
     if (field.Type == TType.List) {
       {
         this.expungedNotes = new List<string>();
         TList _list15 = iprot.ReadListBegin();
         for( int _i16 = 0; _i16 < _list15.Count; ++_i16)
         {
           string _elem17 = null;
           _elem17 = iprot.ReadString();
           this.expungedNotes.Add(_elem17);
         }
         iprot.ReadListEnd();
       }
       this.__isset.expungedNotes = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 10:
     if (field.Type == TType.List) {
       {
         this.expungedNotebooks = new List<string>();
         TList _list18 = iprot.ReadListBegin();
         for( int _i19 = 0; _i19 < _list18.Count; ++_i19)
         {
           string _elem20 = null;
           _elem20 = iprot.ReadString();
           this.expungedNotebooks.Add(_elem20);
         }
         iprot.ReadListEnd();
       }
       this.__isset.expungedNotebooks = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 11:
     if (field.Type == TType.List) {
       {
         this.expungedTags = new List<string>();
         TList _list21 = iprot.ReadListBegin();
         for( int _i22 = 0; _i22 < _list21.Count; ++_i22)
         {
           string _elem23 = null;
           _elem23 = iprot.ReadString();
           this.expungedTags.Add(_elem23);
         }
         iprot.ReadListEnd();
       }
       this.__isset.expungedTags = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 12:
     if (field.Type == TType.List) {
       {
         this.expungedSearches = new List<string>();
         TList _list24 = iprot.ReadListBegin();
         for( int _i25 = 0; _i25 < _list24.Count; ++_i25)
         {
           string _elem26 = null;
           _elem26 = iprot.ReadString();
           this.expungedSearches.Add(_elem26);
         }
         iprot.ReadListEnd();
       }
       this.__isset.expungedSearches = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
コード例 #3
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           AuthenticationToken = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Notebook = new Evernote.EDAM.Type.Notebook();
           Notebook.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #4
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 0:
         if (field.Type == TType.List) {
           {
             Success = new List<Evernote.EDAM.Type.Notebook>();
             TList _list110 = iprot.ReadListBegin();
             for( int _i111 = 0; _i111 < _list110.Count; ++_i111)
             {
               Evernote.EDAM.Type.Notebook _elem112 = new Evernote.EDAM.Type.Notebook();
               _elem112 = new Evernote.EDAM.Type.Notebook();
               _elem112.Read(iprot);
               Success.Add(_elem112);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           UserException = new Evernote.EDAM.Error.EDAMUserException();
           UserException.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           SystemException = new Evernote.EDAM.Error.EDAMSystemException();
           SystemException.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #5
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             Notes = new List<Evernote.EDAM.Type.Note>();
             TList _list94 = iprot.ReadListBegin();
             for( int _i95 = 0; _i95 < _list94.Count; ++_i95)
             {
               Evernote.EDAM.Type.Note _elem96 = new Evernote.EDAM.Type.Note();
               _elem96 = new Evernote.EDAM.Type.Note();
               _elem96.Read(iprot);
               Notes.Add(_elem96);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Notebooks = new List<Evernote.EDAM.Type.Notebook>();
             TList _list97 = iprot.ReadListBegin();
             for( int _i98 = 0; _i98 < _list97.Count; ++_i98)
             {
               Evernote.EDAM.Type.Notebook _elem99 = new Evernote.EDAM.Type.Notebook();
               _elem99 = new Evernote.EDAM.Type.Notebook();
               _elem99.Read(iprot);
               Notebooks.Add(_elem99);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.List) {
           {
             Tags = new List<Evernote.EDAM.Type.Tag>();
             TList _list100 = iprot.ReadListBegin();
             for( int _i101 = 0; _i101 < _list100.Count; ++_i101)
             {
               Evernote.EDAM.Type.Tag _elem102 = new Evernote.EDAM.Type.Tag();
               _elem102 = new Evernote.EDAM.Type.Tag();
               _elem102.Read(iprot);
               Tags.Add(_elem102);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.List) {
           {
             ContainingNotebooks = new List<Evernote.EDAM.Type.NotebookDescriptor>();
             TList _list103 = iprot.ReadListBegin();
             for( int _i104 = 0; _i104 < _list103.Count; ++_i104)
             {
               Evernote.EDAM.Type.NotebookDescriptor _elem105 = new Evernote.EDAM.Type.NotebookDescriptor();
               _elem105 = new Evernote.EDAM.Type.NotebookDescriptor();
               _elem105.Read(iprot);
               ContainingNotebooks.Add(_elem105);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #6
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.I64)
                    {
                        CurrentTime = iprot.ReadI64();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.I32)
                    {
                        ChunkHighUSN = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.I32)
                    {
                        UpdateCount = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            Notes = new List <Evernote.EDAM.Type.Note>();
                            TList _list0 = iprot.ReadListBegin();
                            for (int _i1 = 0; _i1 < _list0.Count; ++_i1)
                            {
                                Evernote.EDAM.Type.Note _elem2 = new Evernote.EDAM.Type.Note();
                                _elem2 = new Evernote.EDAM.Type.Note();
                                _elem2.Read(iprot);
                                Notes.Add(_elem2);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.List)
                    {
                        {
                            Notebooks = new List <Evernote.EDAM.Type.Notebook>();
                            TList _list3 = iprot.ReadListBegin();
                            for (int _i4 = 0; _i4 < _list3.Count; ++_i4)
                            {
                                Evernote.EDAM.Type.Notebook _elem5 = new Evernote.EDAM.Type.Notebook();
                                _elem5 = new Evernote.EDAM.Type.Notebook();
                                _elem5.Read(iprot);
                                Notebooks.Add(_elem5);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.List)
                    {
                        {
                            Tags = new List <Evernote.EDAM.Type.Tag>();
                            TList _list6 = iprot.ReadListBegin();
                            for (int _i7 = 0; _i7 < _list6.Count; ++_i7)
                            {
                                Evernote.EDAM.Type.Tag _elem8 = new Evernote.EDAM.Type.Tag();
                                _elem8 = new Evernote.EDAM.Type.Tag();
                                _elem8.Read(iprot);
                                Tags.Add(_elem8);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.List)
                    {
                        {
                            Searches = new List <Evernote.EDAM.Type.SavedSearch>();
                            TList _list9 = iprot.ReadListBegin();
                            for (int _i10 = 0; _i10 < _list9.Count; ++_i10)
                            {
                                Evernote.EDAM.Type.SavedSearch _elem11 = new Evernote.EDAM.Type.SavedSearch();
                                _elem11 = new Evernote.EDAM.Type.SavedSearch();
                                _elem11.Read(iprot);
                                Searches.Add(_elem11);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.List)
                    {
                        {
                            Resources = new List <Evernote.EDAM.Type.Resource>();
                            TList _list12 = iprot.ReadListBegin();
                            for (int _i13 = 0; _i13 < _list12.Count; ++_i13)
                            {
                                Evernote.EDAM.Type.Resource _elem14 = new Evernote.EDAM.Type.Resource();
                                _elem14 = new Evernote.EDAM.Type.Resource();
                                _elem14.Read(iprot);
                                Resources.Add(_elem14);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.List)
                    {
                        {
                            ExpungedNotes = new List <string>();
                            TList _list15 = iprot.ReadListBegin();
                            for (int _i16 = 0; _i16 < _list15.Count; ++_i16)
                            {
                                string _elem17 = null;
                                _elem17 = iprot.ReadString();
                                ExpungedNotes.Add(_elem17);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.List)
                    {
                        {
                            ExpungedNotebooks = new List <string>();
                            TList _list18 = iprot.ReadListBegin();
                            for (int _i19 = 0; _i19 < _list18.Count; ++_i19)
                            {
                                string _elem20 = null;
                                _elem20 = iprot.ReadString();
                                ExpungedNotebooks.Add(_elem20);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 11:
                    if (field.Type == TType.List)
                    {
                        {
                            ExpungedTags = new List <string>();
                            TList _list21 = iprot.ReadListBegin();
                            for (int _i22 = 0; _i22 < _list21.Count; ++_i22)
                            {
                                string _elem23 = null;
                                _elem23 = iprot.ReadString();
                                ExpungedTags.Add(_elem23);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 12:
                    if (field.Type == TType.List)
                    {
                        {
                            ExpungedSearches = new List <string>();
                            TList _list24 = iprot.ReadListBegin();
                            for (int _i25 = 0; _i25 < _list24.Count; ++_i25)
                            {
                                string _elem26 = null;
                                _elem26 = iprot.ReadString();
                                ExpungedSearches.Add(_elem26);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 13:
                    if (field.Type == TType.List)
                    {
                        {
                            LinkedNotebooks = new List <Evernote.EDAM.Type.LinkedNotebook>();
                            TList _list27 = iprot.ReadListBegin();
                            for (int _i28 = 0; _i28 < _list27.Count; ++_i28)
                            {
                                Evernote.EDAM.Type.LinkedNotebook _elem29 = new Evernote.EDAM.Type.LinkedNotebook();
                                _elem29 = new Evernote.EDAM.Type.LinkedNotebook();
                                _elem29.Read(iprot);
                                LinkedNotebooks.Add(_elem29);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 14:
                    if (field.Type == TType.List)
                    {
                        {
                            ExpungedLinkedNotebooks = new List <string>();
                            TList _list30 = iprot.ReadListBegin();
                            for (int _i31 = 0; _i31 < _list30.Count; ++_i31)
                            {
                                string _elem32 = null;
                                _elem32 = iprot.ReadString();
                                ExpungedLinkedNotebooks.Add(_elem32);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #7
0
ファイル: NoteStore.cs プロジェクト: trayburn/EverGTD
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.List) {
     {
       this.success = new List<Evernote.EDAM.Type.Notebook>();
       TList _list66 = iprot.ReadListBegin();
       for( int _i67 = 0; _i67 < _list66.Count; ++_i67)
       {
         Evernote.EDAM.Type.Notebook _elem68 = new Evernote.EDAM.Type.Notebook();
         _elem68 = new Evernote.EDAM.Type.Notebook();
         _elem68.Read(iprot);
         this.success.Add(_elem68);
       }
       iprot.ReadListEnd();
     }
     this.__isset.success = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     this.userException = new Evernote.EDAM.Error.EDAMUserException();
     this.userException.Read(iprot);
     this.__isset.userException = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     this.systemException = new Evernote.EDAM.Error.EDAMSystemException();
     this.systemException.Read(iprot);
     this.__isset.systemException = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
コード例 #8
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             Notes = new List<Evernote.EDAM.Type.Note>();
             TList _list103 = iprot.ReadListBegin();
             for( int _i104 = 0; _i104 < _list103.Count; ++_i104)
             {
               Evernote.EDAM.Type.Note _elem105 = new Evernote.EDAM.Type.Note();
               _elem105 = new Evernote.EDAM.Type.Note();
               _elem105.Read(iprot);
               Notes.Add(_elem105);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Notebooks = new List<Evernote.EDAM.Type.Notebook>();
             TList _list106 = iprot.ReadListBegin();
             for( int _i107 = 0; _i107 < _list106.Count; ++_i107)
             {
               Evernote.EDAM.Type.Notebook _elem108 = new Evernote.EDAM.Type.Notebook();
               _elem108 = new Evernote.EDAM.Type.Notebook();
               _elem108.Read(iprot);
               Notebooks.Add(_elem108);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.List) {
           {
             Tags = new List<Evernote.EDAM.Type.Tag>();
             TList _list109 = iprot.ReadListBegin();
             for( int _i110 = 0; _i110 < _list109.Count; ++_i110)
             {
               Evernote.EDAM.Type.Tag _elem111 = new Evernote.EDAM.Type.Tag();
               _elem111 = new Evernote.EDAM.Type.Tag();
               _elem111.Read(iprot);
               Tags.Add(_elem111);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #9
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.List)
                    {
                        {
                            Notes = new List <Evernote.EDAM.Type.Note>();
                            TList _list94 = iprot.ReadListBegin();
                            for (int _i95 = 0; _i95 < _list94.Count; ++_i95)
                            {
                                Evernote.EDAM.Type.Note _elem96 = new Evernote.EDAM.Type.Note();
                                _elem96 = new Evernote.EDAM.Type.Note();
                                _elem96.Read(iprot);
                                Notes.Add(_elem96);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.List)
                    {
                        {
                            Notebooks = new List <Evernote.EDAM.Type.Notebook>();
                            TList _list97 = iprot.ReadListBegin();
                            for (int _i98 = 0; _i98 < _list97.Count; ++_i98)
                            {
                                Evernote.EDAM.Type.Notebook _elem99 = new Evernote.EDAM.Type.Notebook();
                                _elem99 = new Evernote.EDAM.Type.Notebook();
                                _elem99.Read(iprot);
                                Notebooks.Add(_elem99);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.List)
                    {
                        {
                            Tags = new List <Evernote.EDAM.Type.Tag>();
                            TList _list100 = iprot.ReadListBegin();
                            for (int _i101 = 0; _i101 < _list100.Count; ++_i101)
                            {
                                Evernote.EDAM.Type.Tag _elem102 = new Evernote.EDAM.Type.Tag();
                                _elem102 = new Evernote.EDAM.Type.Tag();
                                _elem102.Read(iprot);
                                Tags.Add(_elem102);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            ContainingNotebooks = new List <Evernote.EDAM.Type.NotebookDescriptor>();
                            TList _list103 = iprot.ReadListBegin();
                            for (int _i104 = 0; _i104 < _list103.Count; ++_i104)
                            {
                                Evernote.EDAM.Type.NotebookDescriptor _elem105 = new Evernote.EDAM.Type.NotebookDescriptor();
                                _elem105 = new Evernote.EDAM.Type.NotebookDescriptor();
                                _elem105.Read(iprot);
                                ContainingNotebooks.Add(_elem105);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #10
0
        public void Read(TProtocol iprot)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                TField field;
                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.List)
                        {
                            {
                                Notes = new List <Evernote.EDAM.Type.Note>();
                                TList _list98 = iprot.ReadListBegin();
                                for (int _i99 = 0; _i99 < _list98.Count; ++_i99)
                                {
                                    Evernote.EDAM.Type.Note _elem100;
                                    _elem100 = new Evernote.EDAM.Type.Note();
                                    _elem100.Read(iprot);
                                    Notes.Add(_elem100);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 2:
                        if (field.Type == TType.List)
                        {
                            {
                                Notebooks = new List <Evernote.EDAM.Type.Notebook>();
                                TList _list101 = iprot.ReadListBegin();
                                for (int _i102 = 0; _i102 < _list101.Count; ++_i102)
                                {
                                    Evernote.EDAM.Type.Notebook _elem103;
                                    _elem103 = new Evernote.EDAM.Type.Notebook();
                                    _elem103.Read(iprot);
                                    Notebooks.Add(_elem103);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 3:
                        if (field.Type == TType.List)
                        {
                            {
                                Tags = new List <Evernote.EDAM.Type.Tag>();
                                TList _list104 = iprot.ReadListBegin();
                                for (int _i105 = 0; _i105 < _list104.Count; ++_i105)
                                {
                                    Evernote.EDAM.Type.Tag _elem106;
                                    _elem106 = new Evernote.EDAM.Type.Tag();
                                    _elem106.Read(iprot);
                                    Tags.Add(_elem106);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 4:
                        if (field.Type == TType.List)
                        {
                            {
                                ContainingNotebooks = new List <Evernote.EDAM.Type.NotebookDescriptor>();
                                TList _list107 = iprot.ReadListBegin();
                                for (int _i108 = 0; _i108 < _list107.Count; ++_i108)
                                {
                                    Evernote.EDAM.Type.NotebookDescriptor _elem109;
                                    _elem109 = new Evernote.EDAM.Type.NotebookDescriptor();
                                    _elem109.Read(iprot);
                                    ContainingNotebooks.Add(_elem109);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 5:
                        if (field.Type == TType.String)
                        {
                            DebugInfo = iprot.ReadString();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 6:
                        if (field.Type == TType.List)
                        {
                            {
                                Experts = new List <Evernote.EDAM.Type.UserProfile>();
                                TList _list110 = iprot.ReadListBegin();
                                for (int _i111 = 0; _i111 < _list110.Count; ++_i111)
                                {
                                    Evernote.EDAM.Type.UserProfile _elem112;
                                    _elem112 = new Evernote.EDAM.Type.UserProfile();
                                    _elem112.Read(iprot);
                                    Experts.Add(_elem112);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 7:
                        if (field.Type == TType.List)
                        {
                            {
                                RelatedContent = new List <Evernote.EDAM.Type.RelatedContent>();
                                TList _list113 = iprot.ReadListBegin();
                                for (int _i114 = 0; _i114 < _list113.Count; ++_i114)
                                {
                                    Evernote.EDAM.Type.RelatedContent _elem115;
                                    _elem115 = new Evernote.EDAM.Type.RelatedContent();
                                    _elem115.Read(iprot);
                                    RelatedContent.Add(_elem115);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 8:
                        if (field.Type == TType.String)
                        {
                            CacheKey = iprot.ReadString();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 9:
                        if (field.Type == TType.I32)
                        {
                            CacheExpires = iprot.ReadI32();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
コード例 #11
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.List)
                    {
                        {
                            Notes = new List <Evernote.EDAM.Type.Note>();
                            TList _list103 = iprot.ReadListBegin();
                            for (int _i104 = 0; _i104 < _list103.Count; ++_i104)
                            {
                                Evernote.EDAM.Type.Note _elem105 = new Evernote.EDAM.Type.Note();
                                _elem105 = new Evernote.EDAM.Type.Note();
                                _elem105.Read(iprot);
                                Notes.Add(_elem105);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.List)
                    {
                        {
                            Notebooks = new List <Evernote.EDAM.Type.Notebook>();
                            TList _list106 = iprot.ReadListBegin();
                            for (int _i107 = 0; _i107 < _list106.Count; ++_i107)
                            {
                                Evernote.EDAM.Type.Notebook _elem108 = new Evernote.EDAM.Type.Notebook();
                                _elem108 = new Evernote.EDAM.Type.Notebook();
                                _elem108.Read(iprot);
                                Notebooks.Add(_elem108);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.List)
                    {
                        {
                            Tags = new List <Evernote.EDAM.Type.Tag>();
                            TList _list109 = iprot.ReadListBegin();
                            for (int _i110 = 0; _i110 < _list109.Count; ++_i110)
                            {
                                Evernote.EDAM.Type.Tag _elem111 = new Evernote.EDAM.Type.Tag();
                                _elem111 = new Evernote.EDAM.Type.Tag();
                                _elem111.Read(iprot);
                                Tags.Add(_elem111);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }