public static ServiceMessageResponse FromBytes(byte[] input)
 {
     var res = new ServiceMessageResponse();
     res.IsSuccess = BitConverter.ToBoolean(input, 0);
     res.Message = Utils.DeSerializeUTF8String(input, 1);
     return res;
 }
Exemple #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 };
 }
Exemple #4
0
 static ServiceMessageResponse()
 {
     Success = new ServiceMessageResponse {
         IsSuccess = true
     };
 }