-
- All Implemented Interfaces:
-
com.onesignal.common.events.IEventNotifier,com.onesignal.common.modeling.IModelChangedHandler,com.onesignal.common.modeling.IModelStore
public class SubscriptionModelStore extends SimpleModelStore<SubscriptionModel>
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanhasSubscribersprivate final Stringname
-
Constructor Summary
Constructors Constructor Description SubscriptionModelStore(IPreferencesService prefs)
-
Method Summary
Modifier and Type Method Description BooleangetHasSubscribers()final StringgetName()The persistable name of the model store. UnitreplaceAll(List<SubscriptionModel> models, String tag)Replace all models in the store with the provided models. -
Methods inherited from class com.onesignal.user.internal.subscriptions.SubscriptionModelStore
create -
Methods inherited from class com.onesignal.common.modeling.SimpleModelStore
add, add, clear, get, list, onChanged, persist, remove, subscribe, unsubscribe -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SubscriptionModelStore
SubscriptionModelStore(IPreferencesService prefs)
-
-
Method Detail
-
getHasSubscribers
Boolean getHasSubscribers()
-
getName
final String getName()
The persistable name of the model store. If not specified no persisting will occur.
-
replaceAll
Unit replaceAll(List<SubscriptionModel> models, String tag)
Replace all models in the store with the provided models.
- Parameters:
models- The models to track in the model store.tag- The tag which identifies how/why the model store is being replaced.
-
-
-
-