Package work.torp.domain.api
Class APIResponse
- java.lang.Object
-
- work.torp.domain.api.APIResponse
-
public class APIResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
APIResponse.dataType
-
Constructor Summary
Constructors Constructor Description APIResponse()
APIResponse(boolean success, java.lang.String details, APIResponse.dataType returnType, java.lang.Object returnValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDetails()
APIResponse.dataType
getReturnType()
java.lang.Object
getReturnValue()
boolean
isSuccess()
void
setDetails(java.lang.String details)
void
setReturnType(APIResponse.dataType returnType)
void
setReturnValue(java.lang.Object returnValue)
void
setSuccess(boolean success)
-
-
-
Constructor Detail
-
APIResponse
public APIResponse()
-
APIResponse
public APIResponse(boolean success, java.lang.String details, APIResponse.dataType returnType, java.lang.Object returnValue)
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
-
setSuccess
public void setSuccess(boolean success)
-
getDetails
public java.lang.String getDetails()
-
setDetails
public void setDetails(java.lang.String details)
-
getReturnType
public APIResponse.dataType getReturnType()
-
setReturnType
public void setReturnType(APIResponse.dataType returnType)
-
getReturnValue
public java.lang.Object getReturnValue()
-
setReturnValue
public void setReturnValue(java.lang.Object returnValue)
-
-