Пример #1
0
        public BaseResponse <TData> WithStatusCode(ResponseStatusCodes code)
        {
            StatusCode = code;

            IsStatusCodeOverriden = true;

            return(this);
        }
Пример #2
0
 public ResponseMessage(ResponseStatusCodes responseCode, string message, T returnedObject)
 {
     this.responseCode   = responseCode;
     this.message        = message;
     this.returnedObject = returnedObject;
 }
Пример #3
0
 public ResponseMessage(ResponseStatusCodes responseCode, string message)
 {
     this.responseCode = responseCode;
     this.message      = message;
 }
Пример #4
0
 public ResponseStatus(ResponseStatusCodes statusCode, string errorMessage = null, T value = default)
 {
     this.StatusCode   = statusCode;
     this.ErrorMessage = errorMessage;
     this.Value        = value;
 }