AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.AdaptyProfile Class Referencesealed

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< AdaptyExternalAttributionProviderAppliedExternalAttributionProviders [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, AccessLevelAccessLevels [get, private set]
 The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none.
IReadOnlyDictionary< string, SubscriptionSubscriptions [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.

Detailed Description

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

Constructor & Destructor Documentation

◆ AdaptyProfile()

AdaptySDK.AdaptyProfile.AdaptyProfile ( )
private

Member Function Documentation

◆ Freeze()

void AdaptySDK.AdaptyProfile.Freeze ( )
private

◆ OnDeserialized()

void AdaptySDK.AdaptyProfile.OnDeserialized ( StreamingContext context)
private

◆ ToString()

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.

Member Data Documentation

◆ _AccessLevels

readonly Dictionary<string, AccessLevel> AdaptySDK.AdaptyProfile._AccessLevels = new Dictionary<string, AccessLevel>()
private

A dictionary of access levels configured in the Adapty Dashboard.

The keys are access level identifiers configured by you in the Adapty Dashboard. The values are AccessLevel objects. Can be null if the customer has no access levels.

◆ _AppliedExternalAttributionProviders

readonly List<string> AdaptySDK.AdaptyProfile._AppliedExternalAttributionProviders = new List<string>()
private

Identifiers of external attribution providers applied to the profile.

◆ _CustomAttributes

readonly Dictionary<string, object> AdaptySDK.AdaptyProfile._CustomAttributes = new Dictionary<string, object>()
private

Previously set user custom attributes with Adapty.UpdateProfile(AdaptyProfileParameters, Action<AdaptyError>) method.

◆ _NonSubscriptions

readonly Dictionary<string, List<NonSubscription> > AdaptySDK.AdaptyProfile._NonSubscriptions = new Dictionary<string, List<NonSubscription>>()
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.

◆ _Subscriptions

readonly Dictionary<string, Subscription> AdaptySDK.AdaptyProfile._Subscriptions = new Dictionary<string, Subscription>()
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.

◆ CustomerUserId

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>).

◆ IsTestUser

readonly bool AdaptySDK.AdaptyProfile.IsTestUser
package

◆ ProfileId

readonly string AdaptySDK.AdaptyProfile.ProfileId

An identifier of the user in Adapty.

◆ SegmentId

readonly string AdaptySDK.AdaptyProfile.SegmentId
package

An identifier of the segment to which the user belongs.

◆ Version

readonly Int64 AdaptySDK.AdaptyProfile.Version
package

Property Documentation

◆ AccessLevels

IReadOnlyDictionary<string, AccessLevel> AdaptySDK.AdaptyProfile.AccessLevels
getprivate set

The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none.

◆ AppliedExternalAttributionProviders

IReadOnlyList<AdaptyExternalAttributionProvider> AdaptySDK.AdaptyProfile.AppliedExternalAttributionProviders
getprivate set

The external attribution providers applied to this profile.

◆ CustomAttributes

IReadOnlyDictionary<string, object> AdaptySDK.AdaptyProfile.CustomAttributes
getprivate set

The custom attributes set on this profile. Numbers arrive as double.

◆ NonSubscriptions

IReadOnlyDictionary<string, IReadOnlyList<NonSubscription> > AdaptySDK.AdaptyProfile.NonSubscriptions
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.

◆ Subscriptions

IReadOnlyDictionary<string, Subscription> AdaptySDK.AdaptyProfile.Subscriptions
getprivate set

The profile's subscriptions, keyed by store product id. Empty when the user has none.


The documentation for this class was generated from the following files: