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.Struct)
                    {
                        Note = new Evernote.EDAM.Type.Note();
                        Note.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

                case 3:
                    if (field.Type == TType.Double)
                    {
                        Score = iprot.ReadDouble();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Beispiel #2
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.Struct)
                        {
                            Note = new Evernote.EDAM.Type.Note();
                            Note.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 2:
                        if (field.Type == TType.Bool)
                        {
                            Updated = iprot.ReadBool();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
 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.Note();
           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;
       case 3:
         if (field.Type == TType.Struct) {
           NotFoundException = new Evernote.EDAM.Error.EDAMNotFoundException();
           NotFoundException.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 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) {
           Note = new Evernote.EDAM.Type.Note();
           Note.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
        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();
        }
        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();
        }
 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();
 }
Beispiel #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.String)
                    {
                        Guid = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.Struct)
                    {
                        Note = new Evernote.EDAM.Type.Note();
                        Note.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.List)
                    {
                        {
                            ToAddresses = new List <string>();
                            TList _list86 = iprot.ReadListBegin();
                            for (int _i87 = 0; _i87 < _list86.Count; ++_i87)
                            {
                                string _elem88 = null;
                                _elem88 = iprot.ReadString();
                                ToAddresses.Add(_elem88);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            CcAddresses = new List <string>();
                            TList _list89 = iprot.ReadListBegin();
                            for (int _i90 = 0; _i90 < _list89.Count; ++_i90)
                            {
                                string _elem91 = null;
                                _elem91 = iprot.ReadString();
                                CcAddresses.Add(_elem91);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Beispiel #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();
        }
Beispiel #10
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.I32)
                    {
                        StartIndex = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            StoppedWords = new List <string>();
                            TList _list51 = iprot.ReadListBegin();
                            for (int _i52 = 0; _i52 < _list51.Count; ++_i52)
                            {
                                string _elem53 = null;
                                _elem53 = iprot.ReadString();
                                StoppedWords.Add(_elem53);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.List)
                    {
                        {
                            SearchedWords = new List <string>();
                            TList _list54 = iprot.ReadListBegin();
                            for (int _i55 = 0; _i55 < _list54.Count; ++_i55)
                            {
                                string _elem56 = null;
                                _elem56 = iprot.ReadString();
                                SearchedWords.Add(_elem56);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Beispiel #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.I32) {
       this.startIndex = iprot.ReadI32();
       this.__isset.startIndex = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.I32) {
       this.totalNotes = iprot.ReadI32();
       this.__isset.totalNotes = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 3:
     if (field.Type == TType.List) {
       {
         this.notes = new List<Evernote.EDAM.Type.Note>();
         TList _list40 = iprot.ReadListBegin();
         for( int _i41 = 0; _i41 < _list40.Count; ++_i41)
         {
           Evernote.EDAM.Type.Note _elem42 = new Evernote.EDAM.Type.Note();
           _elem42 = new Evernote.EDAM.Type.Note();
           _elem42.Read(iprot);
           this.notes.Add(_elem42);
         }
         iprot.ReadListEnd();
       }
       this.__isset.notes = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 4:
     if (field.Type == TType.List) {
       {
         this.stoppedWords = new List<string>();
         TList _list43 = iprot.ReadListBegin();
         for( int _i44 = 0; _i44 < _list43.Count; ++_i44)
         {
           string _elem45 = null;
           _elem45 = iprot.ReadString();
           this.stoppedWords.Add(_elem45);
         }
         iprot.ReadListEnd();
       }
       this.__isset.stoppedWords = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 5:
     if (field.Type == TType.List) {
       {
         this.searchedWords = new List<string>();
         TList _list46 = iprot.ReadListBegin();
         for( int _i47 = 0; _i47 < _list46.Count; ++_i47)
         {
           string _elem48 = null;
           _elem48 = iprot.ReadString();
           this.searchedWords.Add(_elem48);
         }
         iprot.ReadListEnd();
       }
       this.__isset.searchedWords = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
        public void Read(TProtocol iprot)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                bool   isset_startIndex = false;
                bool   isset_totalNotes = false;
                bool   isset_notes      = false;
                TField field;
                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.I32)
                        {
                            StartIndex       = iprot.ReadI32();
                            isset_startIndex = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

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

                    case 3:
                        if (field.Type == TType.List)
                        {
                            {
                                Notes = new List <Evernote.EDAM.Type.Note>();
                                TList _list52 = iprot.ReadListBegin();
                                for (int _i53 = 0; _i53 < _list52.Count; ++_i53)
                                {
                                    Evernote.EDAM.Type.Note _elem54;
                                    _elem54 = new Evernote.EDAM.Type.Note();
                                    _elem54.Read(iprot);
                                    Notes.Add(_elem54);
                                }
                                iprot.ReadListEnd();
                            }
                            isset_notes = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 4:
                        if (field.Type == TType.List)
                        {
                            {
                                StoppedWords = new List <string>();
                                TList _list55 = iprot.ReadListBegin();
                                for (int _i56 = 0; _i56 < _list55.Count; ++_i56)
                                {
                                    string _elem57;
                                    _elem57 = iprot.ReadString();
                                    StoppedWords.Add(_elem57);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 5:
                        if (field.Type == TType.List)
                        {
                            {
                                SearchedWords = new List <string>();
                                TList _list58 = iprot.ReadListBegin();
                                for (int _i59 = 0; _i59 < _list58.Count; ++_i59)
                                {
                                    string _elem60;
                                    _elem60 = iprot.ReadString();
                                    SearchedWords.Add(_elem60);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

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

                    case 7:
                        if (field.Type == TType.String)
                        {
                            SearchContextBytes = iprot.ReadBinary();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

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

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
                if (!isset_startIndex)
                {
                    throw new TProtocolException(TProtocolException.INVALID_DATA, "required field StartIndex not set");
                }
                if (!isset_totalNotes)
                {
                    throw new TProtocolException(TProtocolException.INVALID_DATA, "required field TotalNotes not set");
                }
                if (!isset_notes)
                {
                    throw new TProtocolException(TProtocolException.INVALID_DATA, "required field Notes not set");
                }
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
Beispiel #13
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();
            }
        }
Beispiel #14
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) {
           Guid = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Note = new Evernote.EDAM.Type.Note();
           Note.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.List) {
           {
             ToAddresses = new List<string>();
             TList _list95 = iprot.ReadListBegin();
             for( int _i96 = 0; _i96 < _list95.Count; ++_i96)
             {
               string _elem97 = null;
               _elem97 = iprot.ReadString();
               ToAddresses.Add(_elem97);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.List) {
           {
             CcAddresses = new List<string>();
             TList _list98 = iprot.ReadListBegin();
             for( int _i99 = 0; _i99 < _list98.Count; ++_i99)
             {
               string _elem100 = null;
               _elem100 = iprot.ReadString();
               CcAddresses.Add(_elem100);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.String) {
           Subject = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.String) {
           Message = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 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.I32) {
           StartIndex = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           TotalNotes = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.List) {
           {
             Notes = new List<Evernote.EDAM.Type.Note>();
             TList _list48 = iprot.ReadListBegin();
             for( int _i49 = 0; _i49 < _list48.Count; ++_i49)
             {
               Evernote.EDAM.Type.Note _elem50 = new Evernote.EDAM.Type.Note();
               _elem50 = new Evernote.EDAM.Type.Note();
               _elem50.Read(iprot);
               Notes.Add(_elem50);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.List) {
           {
             StoppedWords = new List<string>();
             TList _list51 = iprot.ReadListBegin();
             for( int _i52 = 0; _i52 < _list51.Count; ++_i52)
             {
               string _elem53 = null;
               _elem53 = iprot.ReadString();
               StoppedWords.Add(_elem53);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.List) {
           {
             SearchedWords = new List<string>();
             TList _list54 = iprot.ReadListBegin();
             for( int _i55 = 0; _i55 < _list54.Count; ++_i55)
             {
               string _elem56 = null;
               _elem56 = iprot.ReadString();
               SearchedWords.Add(_elem56);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.I32) {
           UpdateCount = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
        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.String)
                        {
                            Guid = iprot.ReadString();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 2:
                        if (field.Type == TType.Struct)
                        {
                            Note = new Evernote.EDAM.Type.Note();
                            Note.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 3:
                        if (field.Type == TType.List)
                        {
                            {
                                ToAddresses = new List <string>();
                                TList _list90 = iprot.ReadListBegin();
                                for (int _i91 = 0; _i91 < _list90.Count; ++_i91)
                                {
                                    string _elem92;
                                    _elem92 = iprot.ReadString();
                                    ToAddresses.Add(_elem92);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 4:
                        if (field.Type == TType.List)
                        {
                            {
                                CcAddresses = new List <string>();
                                TList _list93 = iprot.ReadListBegin();
                                for (int _i94 = 0; _i94 < _list93.Count; ++_i94)
                                {
                                    string _elem95;
                                    _elem95 = iprot.ReadString();
                                    CcAddresses.Add(_elem95);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

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

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

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
 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();
 }
Beispiel #18
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) {
       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();
 }
Beispiel #19
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.I32)
                    {
                        this.startIndex         = iprot.ReadI32();
                        this.__isset.startIndex = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

                case 3:
                    if (field.Type == TType.List)
                    {
                        {
                            this.notes = new List <Evernote.EDAM.Type.Note>();
                            TList _list40 = iprot.ReadListBegin();
                            for (int _i41 = 0; _i41 < _list40.Count; ++_i41)
                            {
                                Evernote.EDAM.Type.Note _elem42 = new Evernote.EDAM.Type.Note();
                                _elem42 = new Evernote.EDAM.Type.Note();
                                _elem42.Read(iprot);
                                this.notes.Add(_elem42);
                            }
                            iprot.ReadListEnd();
                        }
                        this.__isset.notes = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            this.stoppedWords = new List <string>();
                            TList _list43 = iprot.ReadListBegin();
                            for (int _i44 = 0; _i44 < _list43.Count; ++_i44)
                            {
                                string _elem45 = null;
                                _elem45 = iprot.ReadString();
                                this.stoppedWords.Add(_elem45);
                            }
                            iprot.ReadListEnd();
                        }
                        this.__isset.stoppedWords = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.List)
                    {
                        {
                            this.searchedWords = new List <string>();
                            TList _list46 = iprot.ReadListBegin();
                            for (int _i47 = 0; _i47 < _list46.Count; ++_i47)
                            {
                                string _elem48 = null;
                                _elem48 = iprot.ReadString();
                                this.searchedWords.Add(_elem48);
                            }
                            iprot.ReadListEnd();
                        }
                        this.__isset.searchedWords = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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