-
public final class SubscriptionListA readonly list of subscriptions. Wraps a standard List to help navigate the list of subscriptions. The full list can be accessed via SubscriptionList.collection.
-
-
Field Summary
Fields Modifier and Type Field Description private final IPushSubscriptionpushprivate final List<IEmailSubscription>emailsprivate final List<ISmsSubscription>smssprivate final List<ISubscription>collection
-
Constructor Summary
Constructors Constructor Description SubscriptionList(List<ISubscription> collection, IPushSubscription _fallbackPushSub)
-
Method Summary
Modifier and Type Method Description final IPushSubscriptiongetPush()final List<IEmailSubscription>getEmails()final List<ISmsSubscription>getSmss()final List<ISubscription>getCollection()final IEmailSubscriptiongetByEmail(String email)Retrieve the Email subscription with the matching email, if there is one. final ISmsSubscriptiongetBySMS(String sms)Retrieve the SMS subscription with the matching SMS number, if there is one. -
-
Constructor Detail
-
SubscriptionList
SubscriptionList(List<ISubscription> collection, IPushSubscription _fallbackPushSub)
-
-
Method Detail
-
getPush
final IPushSubscription getPush()
-
getEmails
final List<IEmailSubscription> getEmails()
-
getSmss
final List<ISmsSubscription> getSmss()
-
getCollection
final List<ISubscription> getCollection()
-
getByEmail
final IEmailSubscription getByEmail(String email)
Retrieve the Email subscription with the matching email, if there is one. Compares against the underlying model address (raw or hashed) so lookups work both before and after server hydration.
-
getBySMS
final ISmsSubscription getBySMS(String sms)
Retrieve the SMS subscription with the matching SMS number, if there is one. Compares against the underlying model address (raw or hashed) so lookups work both before and after server hydration.
-
-
-
-