Package im.getsocial.sdk.notifications
Class NotificationsQuery
- java.lang.Object
-
- im.getsocial.sdk.notifications.NotificationsQuery
-
public final class NotificationsQuery extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getActions()
Get list of actions.java.util.List<java.lang.String>
getStatuses()
Get statuses.java.util.List<java.lang.String>
getTypes()
Get list of types.NotificationsQuery
ofAllTypes()
Set query to get notifications of all types.NotificationsQuery
ofTypes(java.lang.String... types)
Set query to get notifications of specific types.NotificationsQuery
ofTypes(java.util.List<java.lang.String> types)
Set query to get notifications of specific types.NotificationsQuery
withActions(java.lang.String... actions)
Set query to get notifications of specific actions.NotificationsQuery
withActions(java.util.List<java.lang.String> actions)
Set query to get notifications of specific actions.static NotificationsQuery
withAllStatuses()
Creates a new query to get notifications with any status.static NotificationsQuery
withStatuses(java.lang.String... statuses)
Create a new query to get notifications with specific statuses.
-
-
-
Method Detail
-
withStatuses
public static NotificationsQuery withStatuses(java.lang.String... statuses)
Create a new query to get notifications with specific statuses.- Parameters:
statuses
- list of statuses.- Returns:
- new query.
-
withAllStatuses
public static NotificationsQuery withAllStatuses()
Creates a new query to get notifications with any status.- Returns:
- new query.
-
ofAllTypes
public NotificationsQuery ofAllTypes()
Set query to get notifications of all types. Default behavior.- Returns:
- same instance.
-
ofTypes
public NotificationsQuery ofTypes(java.util.List<java.lang.String> types)
Set query to get notifications of specific types.- Parameters:
types
- list of types.- Returns:
- same instance.
-
ofTypes
public NotificationsQuery ofTypes(java.lang.String... types)
Set query to get notifications of specific types.- Parameters:
types
- list of types.- Returns:
- same instance.
-
withActions
public NotificationsQuery withActions(java.lang.String... actions)
Set query to get notifications of specific actions.- Parameters:
actions
- list of types.- Returns:
- same instance.
-
withActions
public NotificationsQuery withActions(java.util.List<java.lang.String> actions)
Set query to get notifications of specific actions.- Parameters:
actions
- list of types.- Returns:
- same instance.
-
getStatuses
public java.util.List<java.lang.String> getStatuses()
Get statuses. Empty list means all statuses.- Returns:
- list of statuses.
-
getTypes
public java.util.List<java.lang.String> getTypes()
Get list of types. Empty list means all types.- Returns:
- list of types.
-
getActions
public java.util.List<java.lang.String> getActions()
Get list of actions. Empty list means all actions.- Returns:
- list of actions.
-
-