public ClientAuthResp(ushort retCode, string account, string token, AvatarPreviewArray previews) { this.retCode = retCode; this.account = account; this.token = token; this.previews = previews; }
public ClientAuthResp() { retCode = 0; account = ""; token = ""; previews = new AvatarPreviewArray(); }
public int __decode(byte[] binData, ref int pos) { this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.avatarID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.previews = new AvatarPreviewArray(); this.previews.__decode(binData, ref pos); return(pos); }
public int __decode(byte[] binData, ref int pos) { this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.account = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.token = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.previews = new AvatarPreviewArray(); this.previews.__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(this.retCode)); data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.avatarID)); if (this.previews == null) { this.previews = new AvatarPreviewArray(); } data.AddRange(this.previews.__encode()); return(data); }
public CreateAvatarResp(ushort retCode, ulong avatarID, AvatarPreviewArray previews) { this.retCode = retCode; this.avatarID = avatarID; this.previews = previews; }
public CreateAvatarResp() { retCode = 0; avatarID = 0; previews = new AvatarPreviewArray(); }