io.antmedia.rest.model.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ant-media-server Show documentation
Show all versions of ant-media-server Show documentation
Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.
package io.antmedia.rest.model;
public class Result {
/**
* Gives information about the operation.
* If it is true, operation is successfull
* if it is false, operation is failed
*/
private boolean success = false;
/**
* Message may be filled when error happens so that developer may
* understand what the problem is
*/
private String message;
/**
* If operation is about adding a record, then the below field have the id of the record
*/
private String dataId;
private int errorId;
/**
* Constructor for the object
*
* @param success
* @param message
*/
public Result(boolean success, String message) {
this(success, null, message);
}
public Result(boolean success) {
this(success, null, null);
}
public Result(boolean success, String dataId, String message) {
this.success = success;
this.message = message;
this.dataId = dataId;
}
public Result(boolean result, String message, int errorId) {
this.success = result;
this.message = message;
this.errorId = errorId;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public int getErrorId() {
return errorId;
}
public void setErrorId(int errorId) {
this.errorId = errorId;
}
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy