public class RelayServiceInfoModel
extends java.util.Observable
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
RelayServiceInfoModel.State |
Modifier and Type | Field and Description |
---|---|
int |
commandReceivedByRelayCount |
int |
commandSentToTargetCount |
static android.os.Parcelable.Creator<RelayServiceInfoModel> |
CREATOR |
ProtocolInfo |
sourceInfo |
java.util.Date |
startTime |
ProtocolInfo |
targetInfo |
Constructor and Description |
---|
RelayServiceInfoModel() |
Modifier and Type | Method and Description |
---|---|
void |
clearError() |
int |
describeContents() |
int |
getCommandReceivedByRelayCount() |
int |
getCommandSentToTargetCount() |
RelayServiceException |
getLastError() |
java.util.Date |
getStartTime() |
RelayServiceInfoModel.State |
getState() |
RelayServiceInfoModel |
incrementCommandReceivedByRelayCount() |
RelayServiceInfoModel |
incrementCommandSentToTargetCount() |
void |
notifyObservers() |
void |
setLastError(RelayServiceException lastError) |
void |
setSourceProtocol(ComProtocol protocol) |
RelayServiceInfoModel |
setState(RelayServiceInfoModel.State state) |
void |
setTargetProtocol(ComProtocol protocol) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public java.util.Date startTime
public int commandReceivedByRelayCount
public int commandSentToTargetCount
public ProtocolInfo sourceInfo
public ProtocolInfo targetInfo
public static final android.os.Parcelable.Creator<RelayServiceInfoModel> CREATOR
public java.util.Date getStartTime()
public int getCommandReceivedByRelayCount()
public int getCommandSentToTargetCount()
public RelayServiceInfoModel setState(RelayServiceInfoModel.State state)
public RelayServiceInfoModel incrementCommandReceivedByRelayCount()
public RelayServiceInfoModel incrementCommandSentToTargetCount()
public void notifyObservers()
notifyObservers
in class java.util.Observable
public RelayServiceInfoModel.State getState()
public void setTargetProtocol(@NonNull ComProtocol protocol)
public void setSourceProtocol(@NonNull ComProtocol protocol)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object
public void setLastError(RelayServiceException lastError)
public RelayServiceException getLastError()
public void clearError()