| Constructor and Description |
|---|
BasicDevice() |
BasicDevice(String token)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDeviceId()
Getter
|
Timestamp |
getLastRegister()
Getter
|
String |
getToken()
Getter
|
void |
setDeviceId(String id)
Setter
|
void |
setLastRegister(Timestamp lastRegister) |
void |
setToken(String token)
Setter the device token
|
void |
validateTokenFormat() |
static void |
validateTokenFormat(String token) |
public BasicDevice()
public BasicDevice(String token) throws InvalidDeviceTokenFormatException
token - The device tokenInvalidDeviceTokenFormatExceptionpublic static void validateTokenFormat(String token) throws InvalidDeviceTokenFormatException
public void validateTokenFormat()
throws InvalidDeviceTokenFormatException
public String getDeviceId()
getDeviceId in interface Devicepublic void setDeviceId(String id)
setDeviceId in interface Deviceid - the device idpublic String getToken()
public void setToken(String token)
public Timestamp getLastRegister()
getLastRegister in interface Devicepublic void setLastRegister(Timestamp lastRegister)
setLastRegister in interface DevicelastRegister - the last registerCopyright © 2016. All rights reserved.