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.order = (Evernote.EDAM.Type.NoteSortOrder)iprot.ReadI32(); this.__isset.order = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Bool) { this.ascending = iprot.ReadBool(); this.__isset.ascending = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { this.words = iprot.ReadString(); this.__isset.words = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { this.notebookGuid = iprot.ReadString(); this.__isset.notebookGuid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.List) { { this.tagGuids = new List <string>(); TList _list36 = iprot.ReadListBegin(); for (int _i37 = 0; _i37 < _list36.Count; ++_i37) { string _elem38 = null; _elem38 = iprot.ReadString(); this.tagGuids.Add(_elem38); } iprot.ReadListEnd(); } this.__isset.tagGuids = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { this.timeZone = iprot.ReadString(); this.__isset.timeZone = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Bool) { this.inactive = iprot.ReadBool(); this.__isset.inactive = true; } 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) { this.order = (Evernote.EDAM.Type.NoteSortOrder)iprot.ReadI32(); this.__isset.order = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Bool) { this.ascending = iprot.ReadBool(); this.__isset.ascending = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { this.words = iprot.ReadString(); this.__isset.words = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { this.notebookGuid = iprot.ReadString(); this.__isset.notebookGuid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.List) { { this.tagGuids = new List<string>(); TList _list36 = iprot.ReadListBegin(); for( int _i37 = 0; _i37 < _list36.Count; ++_i37) { string _elem38 = null; _elem38 = iprot.ReadString(); this.tagGuids.Add(_elem38); } iprot.ReadListEnd(); } this.__isset.tagGuids = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { this.timeZone = iprot.ReadString(); this.__isset.timeZone = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Bool) { this.inactive = iprot.ReadBool(); this.__isset.inactive = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }