|
AdaptySDK 4.1.1
|
Represents a user profile in Adapty. More...
Classes | |
| class | AccessLevel |
| One access level of a profile: whether it is active, what granted it, and until when. More... | |
| class | NonSubscription |
| One non-subscription purchase of a profile — consumable or lifetime. More... | |
| class | Subscription |
| One subscription of a profile, as the store and Adapty currently see it. More... | |
Public Member Functions | |
| override string | ToString () |
| A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it. | |
Public Attributes | |
| readonly string | ProfileId |
| An identifier of the user in Adapty. | |
| readonly string | CustomerUserId |
| An identifier of the user in your system. | |
Package Attributes | |
| readonly string | SegmentId |
| An identifier of the segment to which the user belongs. | |
| readonly Int64 | Version |
| readonly bool | IsTestUser |
Properties | |
| IReadOnlyList< AdaptyExternalAttributionProvider > | AppliedExternalAttributionProviders [get, private set] |
| The external attribution providers applied to this profile. | |
| IReadOnlyDictionary< string, object > | CustomAttributes [get, private set] |
| The custom attributes set on this profile. Numbers arrive as double. | |
| IReadOnlyDictionary< string, AccessLevel > | AccessLevels [get, private set] |
| The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none. | |
| IReadOnlyDictionary< string, Subscription > | Subscriptions [get, private set] |
| The profile's subscriptions, keyed by store product id. Empty when the user has none. | |
| IReadOnlyDictionary< string, IReadOnlyList< NonSubscription > > | NonSubscriptions [get, private set] |
| The profile's non-subscription purchases, keyed by store product id — a list each, since one product can be bought more than once. Empty when the user has none. | |
Private Member Functions | |
| AdaptyProfile () | |
| void | OnDeserialized (StreamingContext context) |
| void | Freeze () |
Private Attributes | |
| readonly List< string > | _AppliedExternalAttributionProviders = new List<string>() |
| Identifiers of external attribution providers applied to the profile. | |
| readonly Dictionary< string, object > | _CustomAttributes = new Dictionary<string, object>() |
| Previously set user custom attributes with Adapty.UpdateProfile(AdaptyProfileParameters, Action<AdaptyError>) method. | |
| readonly Dictionary< string, AccessLevel > | _AccessLevels = new Dictionary<string, AccessLevel>() |
| A dictionary of access levels configured in the Adapty Dashboard. | |
| readonly Dictionary< string, Subscription > | _Subscriptions = new Dictionary<string, Subscription>() |
| A dictionary of active subscriptions. | |
| readonly Dictionary< string, List< NonSubscription > > | _NonSubscriptions = new Dictionary<string, List<NonSubscription>>() |
| A dictionary of non-subscription purchases. | |
Represents a user profile in Adapty.
The profile contains all information about the user including access levels, subscriptions, non-subscription purchases, and custom attributes. Read more at Adapty Documentation
|
private |
|
private |
|
private |
| override string AdaptySDK.AdaptyProfile.ToString | ( | ) |
A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
|
private |
|
private |
Identifiers of external attribution providers applied to the profile.
|
private |
Previously set user custom attributes with Adapty.UpdateProfile(AdaptyProfileParameters, Action<AdaptyError>) method.
|
private |
A dictionary of non-subscription purchases.
The keys are product IDs from App Store Connect or Google Play Console. The values are lists of NonSubscription objects (one product can have multiple purchases). Can be null if the customer has no non-subscription purchases.
|
private |
A dictionary of active subscriptions.
The keys are product IDs from App Store Connect or Google Play Console. The values are Subscription objects. Can be null if the customer has no subscriptions.
| readonly string AdaptySDK.AdaptyProfile.CustomerUserId |
An identifier of the user in your system.
This is the customer user ID that you set using Adapty.Identify(string, Action<AdaptyError>).
|
package |
| readonly string AdaptySDK.AdaptyProfile.ProfileId |
An identifier of the user in Adapty.
|
package |
An identifier of the segment to which the user belongs.
|
package |
|
getprivate set |
The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none.
|
getprivate set |
The external attribution providers applied to this profile.
|
getprivate set |
The custom attributes set on this profile. Numbers arrive as double.
|
getprivate set |
The profile's non-subscription purchases, keyed by store product id — a list each, since one product can be bought more than once. Empty when the user has none.
|
getprivate set |
The profile's subscriptions, keyed by store product id. Empty when the user has none.