Пример #1
0
 public ClientAuthResp(ushort retCode, string account, string token, UserPreviewArray previews)
 {
     this.retCode  = retCode;
     this.account  = account;
     this.token    = token;
     this.previews = previews;
 }
Пример #2
0
 public ClientAuthResp()
 {
     retCode  = 0;
     account  = "";
     token    = "";
     previews = new UserPreviewArray();
 }
Пример #3
0
 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);
 }
Пример #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 UserPreviewArray();
     this.previews.__decode(binData, ref pos);
     return(pos);
 }
Пример #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.userID));
            if (this.previews == null)
            {
                this.previews = new UserPreviewArray();
            }
            data.AddRange(this.previews.__encode());
            return(data);
        }
Пример #6
0
 public CreateUserResp(ushort retCode, ulong userID, UserPreviewArray previews)
 {
     this.retCode  = retCode;
     this.userID   = userID;
     this.previews = previews;
 }
Пример #7
0
 public CreateUserResp()
 {
     retCode  = 0;
     userID   = 0;
     previews = new UserPreviewArray();
 }