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