public static ServiceMessageResponse FromBytes(byte[] input)
 {
     var res = new ServiceMessageResponse();
     res.IsSuccess = BitConverter.ToBoolean(input, 0);
     res.Message = Utils.DeSerializeUTF8String(input, 1);
     return res;
 }
Esempio n. 2
0
        public static ServiceMessageResponse FromBytes(byte[] input)
        {
            var res = new ServiceMessageResponse();

            res.IsSuccess = BitConverter.ToBoolean(input, 0);
            res.Message   = Utils.DeSerializeUTF8String(input, 1);
            return(res);
        }
 static ServiceMessageResponse()
 {
     Success = new ServiceMessageResponse { IsSuccess = true };
 }
Esempio n. 4
0
 static ServiceMessageResponse()
 {
     Success = new ServiceMessageResponse {
         IsSuccess = true
     };
 }