Package io.antmedia.rest.model
Class Result
java.lang.Object
io.antmedia.rest.model.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
void
setErrorId
(int errorId) void
setMessage
(String message) void
setSuccess
(boolean success)
-
Field Details
-
success
private boolean successGives information about the operation. If it is true, operation is successful if it is false, operation is failed -
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
If operation is about adding a record, then the below field have the id of the record -
errorId
private int errorId
-
-
Constructor Details
-
Result
Constructor for the object- Parameters:
success
-message
-
-
Result
public Result(boolean success) -
Result
-
Result
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
setSuccess
public void setSuccess(boolean success) -
getMessage
-
setMessage
-
getErrorId
public int getErrorId() -
setErrorId
public void setErrorId(int errorId) -
getDataId
-
setDataId
-