public SuccessResponseModel(ResponseMessageModel responseMessageModel, TResponseObj responseObj) { this.responseMessageModel = responseMessageModel; this.responseObj = responseObj; }
// This constructor will create a error response with argument message. public BaseResponseModel(String message) { responseMessageModel = new ResponseMessageModel(false, message, ResponseMessageType.Error); }
public SuccessResponseModel(TResponseObj responseObj) { this.responseObj = responseObj; responseMessageModel = new ResponseMessageModel(); }
// This constructor will create a error response. public BaseResponseModel() { responseMessageModel = new ResponseMessageModel(false, ReadOnlyValues.ErrorMessage, ResponseMessageType.Error); }