public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { bool isset_threadId = 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.String) { ThreadId = iprot.ReadString(); isset_threadId = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Mid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { FromTid = new Tid(); FromTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Struct) { ToTid = new Tid(); ToTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Body = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I16) { MsgType = iprot.ReadI16(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.Struct) { Offline = new TimTime(); Offline.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Struct) { LeaguerTid = new Tid(); LeaguerTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.List) { { ExtraList = new List <TimNode>(); TList _list75 = iprot.ReadListBegin(); for (int _i76 = 0; _i76 < _list75.Count; ++_i76) { TimNode _elem77; _elem77 = new TimNode(); _elem77.Read(iprot); ExtraList.Add(_elem77); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.String) { Timestamp = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Struct) { Error = new TimError(); Error.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map78 = iprot.ReadMapBegin(); for (int _i79 = 0; _i79 < _map78.Count; ++_i79) { string _key80; string _val81; _key80 = iprot.ReadString(); _val81 = iprot.ReadString(); ExtraMap[_key80] = _val81; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I16) { Readstatus = iprot.ReadI16(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_threadId) { throw new TProtocolException(TProtocolException.INVALID_DATA); } } finally { iprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { bool isset_fromTid = false; bool isset_toTid = false; bool isset_addr = false; bool isset_port = false; bool isset_transport = false; bool isset_pubId = 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.Struct) { FromTid = new Tid(); FromTid.Read(iprot); isset_fromTid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { ToTid = new Tid(); ToTid.Read(iprot); isset_toTid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Addr = iprot.ReadString(); isset_addr = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.I32) { Port = iprot.ReadI32(); isset_port = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I16) { Transport = iprot.ReadI16(); isset_transport = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { PubId = iprot.ReadString(); isset_pubId = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map117 = iprot.ReadMapBegin(); for (int _i118 = 0; _i118 < _map117.Count; ++_i118) { string _key119; string _val120; _key119 = iprot.ReadString(); _val120 = iprot.ReadString(); ExtraMap[_key119] = _val120; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_fromTid) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_toTid) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_addr) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_port) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_transport) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_pubId) { throw new TProtocolException(TProtocolException.INVALID_DATA); } } finally { iprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { bool isset_threadId = 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.String) { ThreadId = iprot.ReadString(); isset_threadId = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { FromTid = new Tid(); FromTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { ToTid = new Tid(); ToTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { Type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.List) { { ExtraList = new List <TimNode>(); TList _list84 = iprot.ReadListBegin(); for (int _i85 = 0; _i85 < _list84.Count; ++_i85) { TimNode _elem86; _elem86 = new TimNode(); _elem86.Read(iprot); ExtraList.Add(_elem86); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Struct) { Error = new TimError(); Error.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map87 = iprot.ReadMapBegin(); for (int _i88 = 0; _i88 < _map87.Count; ++_i88) { string _key89; string _val90; _key89 = iprot.ReadString(); _val90 = iprot.ReadString(); ExtraMap[_key89] = _val90; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_threadId) { throw new TProtocolException(TProtocolException.INVALID_DATA); } } finally { iprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { bool isset_threadId = 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.String) { ThreadId = iprot.ReadString(); isset_threadId = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { FromTid = new Tid(); FromTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { ToTid = new Tid(); ToTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { Status = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.I32) { Priority = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.String) { Show = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.Struct) { LeaguerTid = new Tid(); LeaguerTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.List) { { ExtraList = new List <TimNode>(); TList _list66 = iprot.ReadListBegin(); for (int _i67 = 0; _i67 < _list66.Count; ++_i67) { TimNode _elem68; _elem68 = new TimNode(); _elem68.Read(iprot); ExtraList.Add(_elem68); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Error = new TimError(); Error.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map69 = iprot.ReadMapBegin(); for (int _i70 = 0; _i70 < _map69.Count; ++_i70) { string _key71; string _val72; _key71 = iprot.ReadString(); _val72 = iprot.ReadString(); ExtraMap[_key71] = _val72; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_threadId) { throw new TProtocolException(TProtocolException.INVALID_DATA); } } finally { iprot.DecrementRecursionDepth(); } }
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) { Tid = new Tid(); Tid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { FounderTid = new Tid(); FounderTid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { HostsTid = new List <Tid>(); TList _list49 = iprot.ReadListBegin(); for (int _i50 = 0; _i50 < _list49.Count; ++_i50) { Tid _elem51; _elem51 = new Tid(); _elem51.Read(iprot); HostsTid.Add(_elem51); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.List) { { MembersTid = new List <Tid>(); TList _list52 = iprot.ReadListBegin(); for (int _i53 = 0; _i53 < _list52.Count; ++_i53) { Tid _elem54; _elem54 = new Tid(); _elem54.Read(iprot); MembersTid.Add(_elem54); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Headurl = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { RoomName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.String) { Desc = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.Struct) { CreateTime = new TimTime(); CreateTime.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.List) { { ExtraList = new List <TimNode>(); TList _list55 = iprot.ReadListBegin(); for (int _i56 = 0; _i56 < _list55.Count; ++_i56) { TimNode _elem57; _elem57 = new TimNode(); _elem57.Read(iprot); ExtraList.Add(_elem57); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map58 = iprot.ReadMapBegin(); for (int _i59 = 0; _i59 < _map58.Count; ++_i59) { string _key60; string _val61; _key60 = iprot.ReadString(); _val61 = iprot.ReadString(); ExtraMap[_key60] = _val61; } iprot.ReadMapEnd(); } } 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) { iprot.IncrementRecursionDepth(); try { bool isset_subscription = false; bool isset_tid = 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.String) { Subscription = iprot.ReadString(); isset_subscription = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Tid = new Tid(); Tid.Read(iprot); isset_tid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map93 = iprot.ReadMapBegin(); for (int _i94 = 0; _i94 < _map93.Count; ++_i94) { string _key95; string _val96; _key95 = iprot.ReadString(); _val96 = iprot.ReadString(); ExtraMap[_key95] = _val96; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_subscription) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_tid) { throw new TProtocolException(TProtocolException.INVALID_DATA); } } finally { iprot.DecrementRecursionDepth(); } }
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) { Tid = new Tid(); Tid.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Nickname = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Remarkname = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { Brithday = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I16) { Gender = iprot.ReadI16(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Headurl = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Struct) { Area = new TimArea(); Area.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Headbyte = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.List) { { PhotoBytes = new List <byte[]>(); TList _list36 = iprot.ReadListBegin(); for (int _i37 = 0; _i37 < _list36.Count; ++_i37) { byte[] _elem38; _elem38 = iprot.ReadBinary(); PhotoBytes.Add(_elem38); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.List) { { ExtraList = new List <TimNode>(); TList _list39 = iprot.ReadListBegin(); for (int _i40 = 0; _i40 < _list39.Count; ++_i40) { TimNode _elem41; _elem41 = new TimNode(); _elem41.Read(iprot); ExtraList.Add(_elem41); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Map) { { ExtraMap = new Dictionary <string, string>(); TMap _map42 = iprot.ReadMapBegin(); for (int _i43 = 0; _i43 < _map42.Count; ++_i43) { string _key44; string _val45; _key44 = iprot.ReadString(); _val45 = iprot.ReadString(); ExtraMap[_key44] = _val45; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }