Package com.zopim.android.sdk.model
Class Connection
- java.lang.Object
-
- com.zopim.android.sdk.model.Connection
-
public class Connection extends java.lang.Object
This is a model class for Connection that will be created byConnectionPath
. It is used to tell connectivity state of theChatApi
session.You can subscribe to connection broadcast via
DataSource.addConnectionObserver(ConnectionObserver)
usingConnectionObserver
This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.
- See Also:
Connection.Status
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
Connection.Status
Definition of connection enum value.
-
Constructor Summary
Constructors Constructor and Description Connection()
Connection(Connection.Status status)
Creates new instance ofConnection
with params passed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Connection.Status
getStatus()
Gets status enum valuejava.lang.String
toString()
-
-
-
Constructor Detail
-
Connection
public Connection()
-
Connection
public Connection(Connection.Status status)
Creates new instance ofConnection
with params passed- Parameters:
status
- to initialize the connection to
-
-
Method Detail
-
getStatus
public Connection.Status getStatus()
Gets status enum valueDescribed in
Connection.Status
- Returns:
- connection status
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-