-
- All Implemented Interfaces:
-
com.onesignal.common.events.IEventNotifier,kotlin.collections.Map,kotlin.collections.MutableMap
public final class IdentityModel extends MapModel<String>
The identity model as a MapModel i.e. a simple key-value pair where the key represents the alias label and the value represents the alias ID for that alias label. This model provides simple access to more well-defined aliases.
-
-
Field Summary
Fields Modifier and Type Field Description private StringonesignalIdprivate StringexternalIdprivate final Integersizeprivate final Set<Entry.Map<String, String>>entriesprivate final Set<String>keysprivate final Collection<String>valuesprivate Stringidprivate final BooleanhasSubscribers
-
Constructor Summary
Constructors Constructor Description IdentityModel()
-
Method Summary
Modifier and Type Method Description final StringgetOnesignalId()final UnitsetOnesignalId(String onesignalId)final StringgetExternalId()final UnitsetExternalId(String externalId)IntegergetSize()Set<Entry.Map<String, String>>getEntries()Set<String>getKeys()Collection<String>getValues()final StringgetId()final UnitsetId(String id)BooleangetHasSubscribers()-
Methods inherited from class com.onesignal.user.internal.identity.IdentityModel
clear, containsKey, containsValue, get, isEmpty, put, putAll, remove -
Methods inherited from class com.onesignal.common.modeling.MapModel
compute, computeIfAbsent, computeIfPresent, hasProperty, initializeFromJson, initializeFromModel, merge, putIfAbsent, remove, replace, replace, replaceAll, setAnyProperty, setBigDecimalProperty, setBooleanProperty, setDoubleProperty, setEnumProperty, setFloatProperty, setIntProperty, setListProperty, setLongProperty, setMapModelProperty, setOptAnyProperty, setOptBigDecimalProperty, setOptBooleanProperty, setOptDoubleProperty, setOptEnumProperty, setOptFloatProperty, setOptIntProperty, setOptListProperty, setOptLongProperty, setOptMapModelProperty, setOptStringProperty, setStringProperty, subscribe, toJSON, unsubscribe -
Methods inherited from class kotlin.collections.MutableMap
forEach, getOrDefault -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOnesignalId
final String getOnesignalId()
-
setOnesignalId
final Unit setOnesignalId(String onesignalId)
-
getExternalId
final String getExternalId()
-
setExternalId
final Unit setExternalId(String externalId)
-
getEntries
Set<Entry.Map<String, String>> getEntries()
-
getValues
Collection<String> getValues()
-
getHasSubscribers
Boolean getHasSubscribers()
-
-
-
-