public void Read (TProtocol iprot) { bool isset_chatSetting = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 10: if (field.Type == TType.Struct) { ChatSetting = new NetFramework.Auto.ChatSettingInfo(); ChatSetting.Read(iprot); isset_chatSetting = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_chatSetting) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public CSChatSettingMsg(NetFramework.Auto.ChatSettingInfo chatSetting) : this() { this.ChatSetting = chatSetting; }