es.javocsoft.android.lib.toucan.client.response
Class Response

java.lang.Object
  extended by es.javocsoft.android.lib.toucan.client.response.Response

public class Response
extends Object

A response object that holds the result of a request.

Version:
1.0 $$ $Author: jgonzalez $ $Date: 2015-04-22 17:35:47 +0200 (Wed, 22 Apr 2015) $
Author:
JavocSoft Team

Field Summary
static int ERROR_BAD_REQUEST
           
static int ERROR_DB
           
static int ERROR_SYSTEM
           
static int ERROR_UNEXPECTED
           
static int RESULT_OK
           
 
Constructor Summary
Response(int code)
           
Response(int code, String msg, Object data)
           
 
Method Summary
 Integer getAppVersion()
           
 int getCode()
           
 String getMsg()
           
 Object getResult()
           
 long getTs()
           
 void setAppVersion(Integer appVersion)
           
 void setCode(int code)
           
 void setMsg(String msg)
           
 void setResult(Object data)
           
 void setTs(long ts)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_OK

public static final int RESULT_OK
See Also:
Constant Field Values

ERROR_BAD_REQUEST

public static final int ERROR_BAD_REQUEST
See Also:
Constant Field Values

ERROR_SYSTEM

public static final int ERROR_SYSTEM
See Also:
Constant Field Values

ERROR_DB

public static final int ERROR_DB
See Also:
Constant Field Values

ERROR_UNEXPECTED

public static final int ERROR_UNEXPECTED
See Also:
Constant Field Values
Constructor Detail

Response

public Response(int code)

Response

public Response(int code,
                String msg,
                Object data)
Method Detail

getCode

public int getCode()

setCode

public void setCode(int code)

getMsg

public String getMsg()

setMsg

public void setMsg(String msg)

getResult

public Object getResult()

setResult

public void setResult(Object data)

getTs

public long getTs()

setTs

public void setTs(long ts)

getAppVersion

public Integer getAppVersion()

setAppVersion

public void setAppVersion(Integer appVersion)


Copyright © 2015-2016 JavocSoft. All Rights Reserved.