public class RoomCount
extends java.lang.Object
hasServerResponse()
is true and
hasError()
is false before calling get()
to be sure that
the query has been successful. It is also possible for queries to fail
indefinitely, so it is advisable to run the query again via
ChaturBot.getRoomCount()
and handle the new object if the current
object fails to receive a server response after a few seconds.
RoomCount
objects are updated for only one query. Subsequent calls to
ChaturBot.getRoomCount()
will update only the new object, not
previous RoomCount
s.
Modifier and Type | Method and Description |
---|---|
int |
get()
Returns the response from the server.
|
java.lang.Throwable |
getError() |
boolean |
hasError() |
boolean |
hasServerResponse() |
public int get()
public boolean hasServerResponse()
public boolean hasError()
public java.lang.Throwable getError()