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 PublicUserInfo(); Success.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { NotFoundException = new Evernote.EDAM.Error.EDAMNotFoundException(); NotFoundException.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) { UserException = new Evernote.EDAM.Error.EDAMUserException(); UserException.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<Evernote.EDAM.Type.LinkedNotebook>(); TList _list150 = iprot.ReadListBegin(); for( int _i151 = 0; _i151 < _list150.Count; ++_i151) { Evernote.EDAM.Type.LinkedNotebook _elem152 = new Evernote.EDAM.Type.LinkedNotebook(); _elem152 = new Evernote.EDAM.Type.LinkedNotebook(); _elem152.Read(iprot); Success.Add(_elem152); } 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) { NotFoundException = new Evernote.EDAM.Error.EDAMNotFoundException(); NotFoundException.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: 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<string>(); TList _list126 = iprot.ReadListBegin(); for( int _i127 = 0; _i127 < _list126.Count; ++_i127) { string _elem128 = null; _elem128 = iprot.ReadString(); Success.Add(_elem128); } 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.Tag>(); TList _list74 = iprot.ReadListBegin(); for( int _i75 = 0; _i75 < _list74.Count; ++_i75) { Evernote.EDAM.Type.Tag _elem76 = new Evernote.EDAM.Type.Tag(); _elem76 = new Evernote.EDAM.Type.Tag(); _elem76.Read(iprot); this.success.Add(_elem76); } 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; 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) { 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(); } }