com.eze.api.EzeResult.setStatus C# (CSharp) Method

setStatus() public method

public setStatus ( Status status ) : void
status Status
return void
        public void setStatus(Status status)
        {
            this.status = status;
        }

Usage Example

Exemplo n.º 1
0
 public EzeResult close()
 {
     if (null != API)
     {
         EzeResult result = API.logout();
         if (result.getStatus() == Status.SUCCESS)
         {
             result = API.exit();
             if (result.getStatus() == Status.SUCCESS)
             {
                 API.destroyInstance();
                 result = new EzeResult();
                 result.setEventName(EventName.LOGOUT);
                 result.setStatus(Status.SUCCESS);
                 return(result);
             }
             else
             {
                 EzeEvent("Exit UnSuccesful", new EventArgs());
                 return(result);
             }
         }
         else
         {
             EzeEvent("Close UnSuccesful", new EventArgs());
             return(result);
         }
     }
     else
     {
         EzeEvent("Close UnSuccesful", new EventArgs());
         EzeResult result = new EzeResult();
         result.setEventName(EventName.LOGOUT);
         result.setStatus(Status.FAILURE);
         return(result);
     }
 }
All Usage Examples Of com.eze.api.EzeResult::setStatus