public interface OobNotificationManager
OobNotificationProfile
objects. Each notification profile contains a channel (SMS, Push, email,
etc.) and an end point attached to that channel (for example an email address for the case of an email channel).Modifier and Type | Method and Description |
---|---|
OobResponse |
clearNotificationProfiles()
Clears (remove all) the current client notification profiles.
|
void |
clearNotificationProfiles(OobClearNotificationProfileCallback callback)
Clears (remove all) the current client notification profiles.
|
void |
clearNotificationProfiles(OobClearNotificationProfileCallback callback,
OobRequestParameter requestParameter)
Clears (remove all) the current client notification profiles.
|
OobResponse |
clearNotificationProfiles(OobRequestParameter requestParameter)
Sets the notification profile of the current client to the given list.
|
OobNotificationProfilesResponse |
getNotificationProfiles()
Retrieves the notification profile from the server, which contains the list of all notification end point
associated with the current client.
|
void |
getNotificationProfiles(OobGetNotificationProfileCallback callback)
Retrieves the notification profile (the list of all notification profiles associated with the current client)
from the server.
|
void |
getNotificationProfiles(OobGetNotificationProfileCallback callback,
OobRequestParameter requestParameter)
Retrieves the notification profile (the list of all notification profiles associated with the current client)
from the server.
|
OobNotificationProfilesResponse |
getNotificationProfiles(OobRequestParameter requestParameter)
Retrieves the notification profile from the server, which contains the list of all notification end point
associated with the current client.
|
OobResponse |
setNotificationProfiles(List<OobNotificationProfile> notificationProfiles)
Sets the notification profile of the current client to the given list.
|
OobResponse |
setNotificationProfiles(List<OobNotificationProfile> notificationProfiles,
OobRequestParameter requestParameter)
Sets the notification profile of the current client to the given list.
|
void |
setNotificationProfiles(List<OobNotificationProfile> notificationProfiles,
OobSetNotificationProfileCallback callback)
Sets the notification profile of the current client to the given list.
|
void |
setNotificationProfiles(List<OobNotificationProfile> notificationProfiles,
OobSetNotificationProfileCallback callback,
OobRequestParameter oobRequestParameter)
Sets the notification profile of the current client to the given list.
|
OobNotificationProfilesResponse getNotificationProfiles()
Retrieves the notification profile from the server, which contains the list of all notification end point associated with the current client.
This method is long running and should not be executed on the UI thread.
OobNotificationProfilesResponse getNotificationProfiles(OobRequestParameter requestParameter)
Retrieves the notification profile from the server, which contains the list of all notification end point associated with the current client.
This method is long running and should not be executed on the UI thread.
requestParameter
- The request object carrying all the data required by the OOBS in order to register the user to it.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.OobResponse setNotificationProfiles(List<OobNotificationProfile> notificationProfiles)
Sets the notification profile of the current client to the given list. If a previous profile was already set, it will be replaced with this new list. If a null list is provided, the notification profile will be cleared.
This method is long running and should not be executed on the UI thread.
notificationProfiles
- a list of one or more notification profiles to set as the new notification profile. Setting this
to null is equivalent to calling clearNotificationProfiles()
.OobResponse setNotificationProfiles(List<OobNotificationProfile> notificationProfiles, OobRequestParameter requestParameter)
Sets the notification profile of the current client to the given list. If a previous profile was already set, it will be replaced with this new list. If a null list is provided, the notification profile will be cleared.
This method is long running and should not be executed on the UI thread.
notificationProfiles
- The list of one or more notification profiles to set as the new notification profile. Setting this
to null is equivalent to calling clearNotificationProfiles()
or clearNotificationProfiles(OobRequestParameter)
.requestParameter
- Request object carrying all the data required by the OOBS in order to register the user to it.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.OobResponse clearNotificationProfiles()
Clears (remove all) the current client notification profiles. This will leaves the client with no notification profile.
This method is long running and should not be executed on the UI thread.
OobResponse clearNotificationProfiles(OobRequestParameter requestParameter)
Sets the notification profile of the current client to the given list. If a previous profile was already set, it will be replaced with this new list. If a null list is provided, the notification profile will be cleared.
This method is long running and should not be executed on the UI thread.
requestParameter
- Request object carrying the custom header.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.void getNotificationProfiles(OobGetNotificationProfileCallback callback)
Retrieves the notification profile (the list of all notification profiles associated with the current client) from the server.
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread.
callback
- The object that will be use to post the result to the UI thread.void getNotificationProfiles(OobGetNotificationProfileCallback callback, OobRequestParameter requestParameter)
Retrieves the notification profile (the list of all notification profiles associated with the current client) from the server.
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread.
callback
- The object that will be use to post the result to the UI thread.requestParameter
- Request object carrying the custom header.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.void setNotificationProfiles(List<OobNotificationProfile> notificationProfiles, OobSetNotificationProfileCallback callback)
Sets the notification profile of the current client to the given list. If a previous profile was already set, it will be replaced with this new
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread. If a null list is provided, the notification profile will be cleared.
notificationProfiles
- A list of one ore more notification profiles to set. Setting this to null is equivalent to
calling or {@link #clearNotificationProfiles(OobRequestParameter)}
.callback
- The object that will be use to post the result to the UI thread.void setNotificationProfiles(List<OobNotificationProfile> notificationProfiles, OobSetNotificationProfileCallback callback, OobRequestParameter oobRequestParameter)
Sets the notification profile of the current client to the given list. If a previous profile was already set, it will be replaced with this new
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread. If a null list is provided, the notification profile will be cleared.
notificationProfiles
- A list of one ore more notification profiles to set. Setting this to null is equivalent to
calling or {@link #clearNotificationProfiles(OobRequestParameter)}
.callback
- The object that will be use to post the result to the UI thread.oobRequestParameter
- Request object carrying the custom header.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.void clearNotificationProfiles(OobClearNotificationProfileCallback callback)
Clears (remove all) the current client notification profiles. This will leaves the client with no notification profile.
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread.
callback
- The object that will be use to post the result to the UI thread.void clearNotificationProfiles(OobClearNotificationProfileCallback callback, OobRequestParameter requestParameter)
Clears (remove all) the current client notification profiles. This will leaves the client with no notification profile.
This method is executed asynchronously and the result will be posted in the provided callback interface. The callback will be done in the UI thread.
callback
- The object that will be use to post the result to the UI thread.requestParameter
- Request object carrying the custom header.IllegalArgumentException
- When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.