com.clover.remote.client.messages.CustomActivityResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote-pay-java-connector Show documentation
Show all versions of remote-pay-java-connector Show documentation
Clover Connector Java library
package com.clover.remote.client.messages;
/**
* Response object for a custom activity request
*/
@SuppressWarnings(value="unused")
public class CustomActivityResponse extends BaseResponse {
private final String payload;
private final String action;
/**
* Constructor
*
* @param success If true then the requested operation succeeded
* @param code The result of the requested operation
* @param payload Data for this activity
* @param failReason Optional information about result
* @param action The name of the action for this activity
*/
public CustomActivityResponse(boolean success, ResultCode code, String payload, String failReason, String action) {
super(success, code);
this.setReason(failReason);
this.payload = payload;
this.action = action;
}
/**
* Get the field value
*
* @return The name of the action for this activity
*/
public String getAction() {
return action;
}
/**
* Get the field value
*
* @return Data for this activity
*/
public String getPayload() {
return payload;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy