public class PushNotificationsApi extends BaseApi implements LoginAppAuthorizable
Constructor and Description |
---|
PushNotificationsApi() |
Modifier and Type | Method and Description |
---|---|
LoginAppAuthorization |
getLoginAppAuthorization() |
void |
publishToDevice(java.lang.String deviceId,
PublishAttributes publishAttributes)
Send a push notification to a Device.
|
void |
publishToLoginApp(PublishAttributes publishAttributes)
Send a push notification to a Login App.
|
void |
publishToUser(int loginUserId,
PublishAttributes publishAttributes)
Send a push notification to a Login User.
|
PushNotificationsApi |
setLoginAppAuthorization(LoginAppAuthorization loginAppAuthorization) |
collectionUrl, getApi, memberUrl, memberUrl, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public void publishToDevice(java.lang.String deviceId, PublishAttributes publishAttributes) throws java.io.IOException, SocialIdApiException
deviceId
- The id of the DevicepublishAttributes
- Push notification attributesjava.io.IOException
SocialIdApiException
public void publishToLoginApp(PublishAttributes publishAttributes) throws java.io.IOException, SocialIdApiException
publishAttributes
- Push notification attributesjava.io.IOException
SocialIdApiException
public void publishToUser(int loginUserId, PublishAttributes publishAttributes) throws java.io.IOException, SocialIdApiException
loginUserId
- The id of the LoginUserpublishAttributes
- Push notification attributesjava.io.IOException
SocialIdApiException
public LoginAppAuthorization getLoginAppAuthorization()
getLoginAppAuthorization
in interface LoginAppAuthorizable
public PushNotificationsApi setLoginAppAuthorization(LoginAppAuthorization loginAppAuthorization)