Exemple #1
0
 /// <summary>
 /// Make new status (internal error status, by default)
 /// </summary>
 /// <param name="ex">Exception</param>
 /// <param name="success">Success</param>
 /// <param name="code">Code</param>
 /// <param name="msg">Message</param>
 public void MakeStatus(Exception ex, bool success = false, int code = (int)ApiResultStatusCode.InternalError, string msg = "Erreur, veuillez réessayer plus tard.")
 {
     Status = new APIStatus(ex, success, code, msg);
 }
Exemple #2
0
 /// <summary>
 /// Make new status (empty, by default)
 /// </summary>
 /// <param name="success">Success</param>
 /// <param name="code">Code</param>
 /// <param name="msg">Message</param>
 /// <param name="err">Error</param>
 public void MakeStatus(bool success, int code, string msg, string err = "")
 {
     Status = new APIStatus(success, code, msg, err);
 }