Ejemplo n.º 1
0
 /// <summary>
 /// Create ApiResult with Api Result Code
 /// </summary>
 /// <param name="apiResultCode">Api Result code with status</param>
 public ApiResult(ApiResultCode apiResultCode)
 {
     this.ResultCode = apiResultCode;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a default cunstructor which provides a new instance of Api Result Code with Error Code type
 /// </summary>
 public ApiResult()
 {
     ResultCode = new ApiResultCode();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create ApiResult with Api Result Code and Object
 /// </summary>
 /// <param name="apiResultCode">Api Result code with status</param>
 /// <param name="userObject">Custom User Object to be return</param>
 public ApiResult(ApiResultCode apiResultCode, T userObject)
     : this(apiResultCode)
 {
     this.UserObject = userObject;
 }