Class Result

java.lang.Object
io.antmedia.rest.model.Result

public class Result extends Object
  • Field Details

    • success

      private boolean success
      Gives information about the operation. If it is true, operation is successful if it is false, operation is failed
    • message

      private String message
      Message may be filled error or information. It is filled with error when success field is false so that developer may understand what the problem is. It is filled with information if user makes a request, it returns success as true with additional information
    • dataId

      private String dataId
      If operation is about adding a record, then the below field have the id of the record
    • errorId

      private int errorId
  • Constructor Details

    • Result

      public Result(boolean success, String message)
      Constructor for the object
      Parameters:
      success -
      message -
    • Result

      public Result(boolean success)
    • Result

      public Result(boolean success, String dataId, String message)
    • Result

      public Result(boolean result, String message, int errorId)
  • Method Details

    • isSuccess

      public boolean isSuccess()
    • setSuccess

      public void setSuccess(boolean success)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getErrorId

      public int getErrorId()
    • setErrorId

      public void setErrorId(int errorId)
    • getDataId

      public String getDataId()
    • setDataId

      public void setDataId(String dataId)