public int __decode(byte[] binData, ref int pos) { this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.msgs = new ChatInfoArray(); this.msgs.__decode(binData, ref pos); return(pos); }
public System.Collections.Generic.List <byte> __encode() { var data = new System.Collections.Generic.List <byte>(); data.AddRange(Proto4z.BaseProtoObject.encodeUI16(retCode)); if (msgs == null) { msgs = new ChatInfoArray(); } data.AddRange(msgs.__encode()); return(data); }
public ChatNotice(ushort retCode, ChatInfoArray msgs) { this.retCode = retCode; this.msgs = msgs; }
public ChatNotice() { retCode = 0; msgs = new ChatInfoArray(); }