Example #1
0
 public ClientAuthResp(ushort retCode, string account, string token, AvatarPreviewArray previews)
 {
     this.retCode  = retCode;
     this.account  = account;
     this.token    = token;
     this.previews = previews;
 }
Example #2
0
 public ClientAuthResp()
 {
     retCode  = 0;
     account  = "";
     token    = "";
     previews = new AvatarPreviewArray();
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
        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);
        }
Example #6
0
 public CreateAvatarResp(ushort retCode, ulong avatarID, AvatarPreviewArray previews)
 {
     this.retCode  = retCode;
     this.avatarID = avatarID;
     this.previews = previews;
 }
Example #7
0
 public CreateAvatarResp()
 {
     retCode  = 0;
     avatarID = 0;
     previews = new AvatarPreviewArray();
 }