public class ServerContact
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
ServerContact.LastStatus |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ServerContact> |
CREATOR |
Modifier | Constructor and Description |
---|---|
|
ServerContact(NetConnectString server,
java.lang.String uid,
java.lang.String callsign,
long lastEventTime,
ServerContact.LastStatus lastStatus,
long syncTime) |
protected |
ServerContact(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
boolean |
equals(ServerContact rhsc) |
static ServerContact |
fromJSON(NetConnectString server,
long syncTime,
org.json.JSONObject obj) |
static java.util.ArrayList<ServerContact> |
fromResultJSON(NetConnectString server,
long syncTime,
org.json.JSONObject json)
Convert JSON to list of results
|
java.lang.String |
getCallsign() |
long |
getLastEventTime() |
CotEvent |
getLastReport() |
ServerContact.LastStatus |
getLastStatus() |
NetConnectString |
getServer() |
long |
getSyncTime() |
java.lang.String |
getUID() |
int |
hashCode() |
boolean |
hasLastReport() |
boolean |
isValid() |
void |
setLastReport(CotEvent lastReport) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<ServerContact> CREATOR
public ServerContact(NetConnectString server, java.lang.String uid, java.lang.String callsign, long lastEventTime, ServerContact.LastStatus lastStatus, long syncTime)
protected ServerContact(android.os.Parcel in)
public NetConnectString getServer()
public java.lang.String getUID()
public java.lang.String getCallsign()
public long getLastEventTime()
public ServerContact.LastStatus getLastStatus()
public long getSyncTime()
public boolean hasLastReport()
public CotEvent getLastReport()
public void setLastReport(CotEvent lastReport)
public boolean isValid()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(ServerContact rhsc)
public java.lang.String toString()
toString
in class java.lang.Object
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public static ServerContact fromJSON(NetConnectString server, long syncTime, org.json.JSONObject obj) throws org.json.JSONException
org.json.JSONException
public static java.util.ArrayList<ServerContact> fromResultJSON(NetConnectString server, long syncTime, org.json.JSONObject json) throws org.json.JSONException
json
- org.json.JSONException