public class DevicesApi extends BaseApi implements LoginAppAuthorizable
Constructor and Description |
---|
DevicesApi() |
Modifier and Type | Method and Description |
---|---|
Device |
create(DeviceAttributes deviceAttributes)
Create a Device.
|
LoginAppAuthorization |
getLoginAppAuthorization() |
void |
linkTo(java.lang.String deviceId,
int loginUserId)
Link a Device to a LoginUser.
|
DevicesApi |
setLoginAppAuthorization(LoginAppAuthorization loginAppAuthorization) |
collectionUrl, getApi, memberUrl, memberUrl, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public Device create(DeviceAttributes deviceAttributes) throws java.io.IOException, SocialIdApiException
deviceAttributes
- The device attributesjava.io.IOException
SocialIdApiException
public void linkTo(java.lang.String deviceId, int loginUserId) throws java.io.IOException, SocialIdApiException
deviceId
- The id of the DeviceloginUserId
- The id of the LoginUserjava.io.IOException
SocialIdApiException
public LoginAppAuthorization getLoginAppAuthorization()
getLoginAppAuthorization
in interface LoginAppAuthorizable
public DevicesApi setLoginAppAuthorization(LoginAppAuthorization loginAppAuthorization)