Class UsersGetPresenceResponse
- java.lang.Object
-
- com.slack.api.methods.response.users.UsersGetPresenceResponse
-
- All Implemented Interfaces:
SlackApiResponse
,SlackApiTextResponse
public class UsersGetPresenceResponse extends Object implements SlackApiTextResponse
-
-
Constructor Summary
Constructors Constructor Description UsersGetPresenceResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Integer
getConnectionCount()
String
getError()
Map<String,List<String>>
getHttpResponseHeaders()
Returns all the HTTP response headers in the API response.Integer
getLastActivity()
String
getNeeded()
String
getPresence()
String
getProvided()
String
getWarning()
int
hashCode()
boolean
isAutoAway()
boolean
isManualAway()
boolean
isOk()
boolean
isOnline()
void
setAutoAway(boolean autoAway)
void
setConnectionCount(Integer connectionCount)
void
setError(String error)
void
setHttpResponseHeaders(Map<String,List<String>> httpResponseHeaders)
Sets the response headers.void
setLastActivity(Integer lastActivity)
void
setManualAway(boolean manualAway)
void
setNeeded(String needed)
void
setOk(boolean ok)
void
setOnline(boolean online)
void
setPresence(String presence)
void
setProvided(String provided)
void
setWarning(String warning)
String
toString()
-
-
-
Method Detail
-
isOk
public boolean isOk()
- Specified by:
isOk
in interfaceSlackApiTextResponse
-
getWarning
public String getWarning()
- Specified by:
getWarning
in interfaceSlackApiTextResponse
-
getError
public String getError()
- Specified by:
getError
in interfaceSlackApiTextResponse
-
getNeeded
public String getNeeded()
- Specified by:
getNeeded
in interfaceSlackApiTextResponse
-
getProvided
public String getProvided()
- Specified by:
getProvided
in interfaceSlackApiTextResponse
-
getHttpResponseHeaders
public Map<String,List<String>> getHttpResponseHeaders()
Description copied from interface:SlackApiResponse
Returns all the HTTP response headers in the API response. The keys are lower-cased.- Specified by:
getHttpResponseHeaders
in interfaceSlackApiResponse
-
getPresence
public String getPresence()
-
isOnline
public boolean isOnline()
-
isAutoAway
public boolean isAutoAway()
-
isManualAway
public boolean isManualAway()
-
getConnectionCount
public Integer getConnectionCount()
-
getLastActivity
public Integer getLastActivity()
-
setOk
public void setOk(boolean ok)
- Specified by:
setOk
in interfaceSlackApiTextResponse
-
setWarning
public void setWarning(String warning)
- Specified by:
setWarning
in interfaceSlackApiTextResponse
-
setError
public void setError(String error)
- Specified by:
setError
in interfaceSlackApiTextResponse
-
setNeeded
public void setNeeded(String needed)
- Specified by:
setNeeded
in interfaceSlackApiTextResponse
-
setProvided
public void setProvided(String provided)
- Specified by:
setProvided
in interfaceSlackApiTextResponse
-
setHttpResponseHeaders
public void setHttpResponseHeaders(Map<String,List<String>> httpResponseHeaders)
Description copied from interface:SlackApiResponse
Sets the response headers. Pass a Map object with lower-cased keys.- Specified by:
setHttpResponseHeaders
in interfaceSlackApiResponse
-
setPresence
public void setPresence(String presence)
-
setOnline
public void setOnline(boolean online)
-
setAutoAway
public void setAutoAway(boolean autoAway)
-
setManualAway
public void setManualAway(boolean manualAway)
-
setConnectionCount
public void setConnectionCount(Integer connectionCount)
-
setLastActivity
public void setLastActivity(Integer lastActivity)
-
canEqual
protected boolean canEqual(Object other)
-
-