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