public abstract class Client extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static Client |
create(FssApiVersion apiVersion,
java.lang.String id,
java.lang.String nickname,
java.lang.String os,
java.lang.String version,
java.lang.Long lastAccess,
java.lang.Boolean needsUpgrade,
java.lang.Boolean inRecovery)
Returns a versioned Client that is compatible with the specified apiVersion.
|
static java.lang.Class<? extends Client> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the Client that corresponds to the specified
apiVersion. |
java.lang.String |
getId()
Returns the client's id.
|
java.lang.Boolean |
getInRecovery()
Returns whether the client is in recovery
|
java.lang.Long |
getLastAccess()
Returns the client's last access in milliseconds since 00:00:00 january 1st 1970
|
java.lang.Boolean |
getNeedsUpgrade()
Returns whether the client needs an upgrade
|
java.lang.String |
getNickname()
Returns the client's nickname.
|
java.lang.String |
getOs()
Returns the client's os.
|
java.lang.String |
getVersion()
Returns the client's version.
|
protected void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
badValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends Client> getFssApiClass(FssApiVersion apiVersion)
Class of the Client that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the Client that corresponds to the specified
apiVersionpublic static Client create(FssApiVersion apiVersion, java.lang.String id, java.lang.String nickname, java.lang.String os, java.lang.String version, java.lang.Long lastAccess, java.lang.Boolean needsUpgrade, java.lang.Boolean inRecovery) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the Clientid - id of the clientnickname - nickname of the clientos - os of the clientversion - version of the clientlastAccess - number of milliseconds since 00:00:00 january 1 1970 that this client was
last accessedneedsUpgrade - Whether client needs an upgradeinRecovery - Whether client is in recoveryAwUnsupportedApiVersionExceptionpublic java.lang.String getId()
public java.lang.String getNickname()
public java.lang.String getOs()
public java.lang.String getVersion()
public java.lang.Long getLastAccess()
public java.lang.Boolean getNeedsUpgrade()
public java.lang.Boolean getInRecovery()
protected void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
validate in class BaseFssApiResourcefieldName - name of this object in the parent (containing) object. If this object is a
top-level object (not contained within another object), then enter null for this
parameterparent - parent (containing) object that contains the object specified in the fieldName
parameter. If this object is a top-level object (not contained within another
object), then enter null for this parameterAwJsonException - if any validation errors occurBaseFssApiResource.validate(String, BaseFssApiResource)