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(); }
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 PremiumInfo(); 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(); }
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<NoteVersionId>(); TList _list134 = iprot.ReadListBegin(); for( int _i135 = 0; _i135 < _list134.Count; ++_i135) { NoteVersionId _elem136 = new NoteVersionId(); _elem136 = new NoteVersionId(); _elem136.Read(iprot); Success.Add(_elem136); } 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; 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 0: if (field.Type == TType.Struct) { this.success = new Evernote.EDAM.Type.Notebook(); this.success.Read(iprot); 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; case 3: if (field.Type == TType.Struct) { this.notFoundException = new Evernote.EDAM.Error.EDAMNotFoundException(); this.notFoundException.Read(iprot); this.__isset.notFoundException = 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 0: if (field.Type == TType.List) { { this.success = new List<Evernote.EDAM.Type.Ad>(); TList _list90 = iprot.ReadListBegin(); for( int _i91 = 0; _i91 < _list90.Count; ++_i91) { Evernote.EDAM.Type.Ad _elem92 = new Evernote.EDAM.Type.Ad(); _elem92 = new Evernote.EDAM.Type.Ad(); _elem92.Read(iprot); this.success.Add(_elem92); } 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(); }
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.LinkedNotebook>(); TList _list102 = iprot.ReadListBegin(); for( int _i103 = 0; _i103 < _list102.Count; ++_i103) { Evernote.EDAM.Type.LinkedNotebook _elem104 = new Evernote.EDAM.Type.LinkedNotebook(); _elem104 = new Evernote.EDAM.Type.LinkedNotebook(); _elem104.Read(iprot); this.success.Add(_elem104); } 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.notFoundException = new Evernote.EDAM.Error.EDAMNotFoundException(); this.notFoundException.Read(iprot); this.__isset.notFoundException = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: 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(); }
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) { UserIdentity = new Evernote.EDAM.Type.UserIdentity(); UserIdentity.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { UserException = new Evernote.EDAM.Error.EDAMUserException(); UserException.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(); } finally { iprot.DecrementRecursionDepth(); } }