Package com.adapty.models
Class AdaptyProfile
-
- All Implemented Interfaces:
public final class AdaptyProfile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAdaptyProfile.AccessLevelpublic final classAdaptyProfile.Subscriptionpublic final classAdaptyProfile.NonSubscriptionpublic enumAdaptyProfile.Genderpublic final classAdaptyProfile.DateThe numbers are as in real life. For example,
Date(year = 1970, month = 1, date = 3)represents January 3, 1970.
-
Field Summary
Fields Modifier and Type Field Description private final StringprofileIdprivate final StringcustomerUserIdprivate final ImmutableMap<String, AdaptyProfile.AccessLevel>accessLevelsprivate final ImmutableMap<String, AdaptyProfile.Subscription>subscriptionsprivate final ImmutableMap<String, ImmutableList<AdaptyProfile.NonSubscription>>nonSubscriptionsprivate final ImmutableMap<String, Object>customAttributes
-
Method Summary
Modifier and Type Method Description final StringgetProfileId()An identifier of a user in Adapty. final StringgetCustomerUserId()An identifier of a user in your system. final ImmutableMap<String, AdaptyProfile.AccessLevel>getAccessLevels()The keys are access level identifiers configured by you in Adapty Dashboard. final ImmutableMap<String, AdaptyProfile.Subscription>getSubscriptions()The keys are product ids from a store. final ImmutableMap<String, ImmutableList<AdaptyProfile.NonSubscription>>getNonSubscriptions()The keys are product ids from the store. final ImmutableMap<String, Object>getCustomAttributes()Previously set user custom attributes with .updateProfile method. Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getProfileId
final String getProfileId()
An identifier of a user in Adapty.
-
getCustomerUserId
final String getCustomerUserId()
An identifier of a user in your system.
-
getAccessLevels
final ImmutableMap<String, AdaptyProfile.AccessLevel> getAccessLevels()
The keys are access level identifiers configured by you in Adapty Dashboard. The values are Can be null if the customer has no access levels.
-
getSubscriptions
final ImmutableMap<String, AdaptyProfile.Subscription> getSubscriptions()
The keys are product ids from a store. The values are information about subscriptions.
-
getNonSubscriptions
final ImmutableMap<String, ImmutableList<AdaptyProfile.NonSubscription>> getNonSubscriptions()
The keys are product ids from the store. The values are lists of information about consumables.
-
getCustomAttributes
final ImmutableMap<String, Object> getCustomAttributes()
Previously set user custom attributes with .updateProfile method.
-
-
-
-