Package com.aducid.sdk.pojo
Class Result
java.lang.Object
com.aducid.sdk.pojo.Result
public class Result
extends java.lang.Object
Result.
Created 13. 10. 2015 11:36:56
- Author:
- Radek Jira
-
Constructor Summary
Constructors Constructor Description Result()Default constructor. -
Method Summary
Modifier and Type Method Description java.lang.ObjectgetData()Returns data.java.lang.StringgetRedirect()Returns redirect.StatusgetStatus()Returns status.voidsetData(java.lang.Object data)Sets data.voidsetRedirect(java.lang.String redirect)Sets redirect.voidsetStatus(Status status)Sets status.java.lang.StringtoJson()Returns result as JSON.java.lang.StringtoString()static ResultwithData(java.lang.Object data)Returns result with data.static ResultwithRedirect(java.lang.String redirect)Returns result with redirect.
-
Constructor Details
-
Result
public Result()Default constructor.
-
-
Method Details
-
getStatus
Returns status.
- Returns:
- status
-
setStatus
Sets status.
- Parameters:
status- status
-
getData
public java.lang.Object getData()Returns data.
- Returns:
- data
-
setData
public void setData(java.lang.Object data)Sets data.
- Parameters:
data- data
-
getRedirect
public java.lang.String getRedirect()Returns redirect.
- Returns:
- redirect
-
setRedirect
public void setRedirect(java.lang.String redirect)Sets redirect.
- Parameters:
redirect- redirect
-
toJson
public java.lang.String toJson()Returns result as JSON.
- Returns:
- result as JSON
-
withData
Returns result with data.
- Parameters:
data- data- Returns:
- result
-
withRedirect
Returns result with redirect.
- Parameters:
redirect- redirect- Returns:
- result
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-