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