Esempio n. 1
0
 ActionResponse(ActionResponseType type)
 {
     Result = type;
     switch(type)
     {
         case ActionResponseType.Succeed:
             Message = "Succeed"; break;
         case ActionResponseType.Failed :
             Message = "Failed"; break;
         default :
             Message = "Not defined"; break;
     }
 }
Esempio n. 2
0
        ActionResponse(ActionResponseType type)
        {
            Result = type;
            switch (type)
            {
            case ActionResponseType.Succeed:
                Message = "Succeed"; break;

            case ActionResponseType.Failed:
                Message = "Failed"; break;

            default:
                Message = "Not defined"; break;
            }
        }
Esempio n. 3
0
        public ActionResponseBuilder <T> SetStatus(ActionResponseType status)
        {
            _actionResponse.Flag = status;

            return(this);
        }