Edit

PFPlayerProfileModel

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

PFPlayerProfileModel data model.

Syntax

typedef struct PFPlayerProfileModel {  
    PFAdCampaignAttributionModel const* const* adCampaignAttributions;  
    uint32_t adCampaignAttributionsCount;  
    const char* avatarUrl;  
    time_t const* bannedUntil;  
    PFContactEmailInfoModel const* const* contactEmailAddresses;  
    uint32_t contactEmailAddressesCount;  
    time_t const* created;  
    const char* displayName;  
    const char* const* experimentVariants;  
    uint32_t experimentVariantsCount;  
    time_t const* lastLogin;  
    PFLinkedPlatformAccountModel const* const* linkedAccounts;  
    uint32_t linkedAccountsCount;  
    PFLocationModel const* const* locations;  
    uint32_t locationsCount;  
    PFMembershipModel const* const* memberships;  
    uint32_t membershipsCount;  
    PFLoginIdentityProvider const* origination;  
    const char* playerId;  
    const char* publisherId;  
    PFPushNotificationRegistrationModel const* const* pushNotificationRegistrations;  
    uint32_t pushNotificationRegistrationsCount;  
    PFStatisticModel const* const* statistics;  
    uint32_t statisticsCount;  
    PFTagModel const* const* tags;  
    uint32_t tagsCount;  
    const char* titleId;  
    uint32_t const* totalValueToDateInUSD;  
    PFValueToDateModel const* const* valuesToDate;  
    uint32_t valuesToDateCount;  
} PFPlayerProfileModel;  

Members

adCampaignAttributions   PFAdCampaignAttributionModel const* const*
may be nullptr

(Optional) List of advertising campaigns the player has been attributed to. An array of adCampaignAttributionsCount pointers.

adCampaignAttributionsCount   uint32_t

Count of adCampaignAttributions

avatarUrl   const char*
is null-terminated

(Optional) URL of the player's avatar image.

bannedUntil   time_t const*
may be nullptr

(Optional) If the player is currently banned, the UTC Date when the ban expires.

contactEmailAddresses   PFContactEmailInfoModel const* const*
may be nullptr

(Optional) List of all contact email info associated with the player account. An array of contactEmailAddressesCount pointers.

contactEmailAddressesCount   uint32_t

Count of contactEmailAddresses

created   time_t const*
may be nullptr

(Optional) Player record created.

displayName   const char*
is null-terminated

(Optional) Player display name.

experimentVariants   const char* const*
may be nullptr

(Optional) List of experiment variants for the player. Note that these variants are not guaranteed to be up-to-date when returned during login because the player profile is updated only after login. Instead, use the LoginResult.TreatmentAssignment property during login to get the correct variants and variables.

experimentVariantsCount   uint32_t

Count of experimentVariants

lastLogin   time_t const*
may be nullptr

(Optional) UTC time when the player most recently logged in to the title.

linkedAccounts   PFLinkedPlatformAccountModel const* const*
may be nullptr

(Optional) List of all authentication systems linked to this player account. An array of linkedAccountsCount pointers.

linkedAccountsCount   uint32_t

Count of linkedAccounts

locations   PFLocationModel const* const*
may be nullptr

(Optional) List of geographic locations from which the player has logged in to the title. An array of locationsCount pointers.

locationsCount   uint32_t

Count of locations

memberships   PFMembershipModel const* const*
may be nullptr

(Optional) List of memberships for the player, along with whether are expired. An array of membershipsCount pointers.

membershipsCount   uint32_t

Count of memberships

origination   PFLoginIdentityProvider const*
may be nullptr

(Optional) Player account origination.

playerId   const char*
is null-terminated

(Optional) PlayFab player account unique identifier.

publisherId   const char*
is null-terminated

(Optional) Publisher this player belongs to.

pushNotificationRegistrations   PFPushNotificationRegistrationModel const* const*
may be nullptr

(Optional) List of configured end points registered for sending the player push notifications. An array of pushNotificationRegistrationsCount pointers.

pushNotificationRegistrationsCount   uint32_t

Count of pushNotificationRegistrations

statistics   PFStatisticModel const* const*
may be nullptr

(Optional) List of leaderboard statistic values for the player. An array of statisticsCount pointers.

statisticsCount   uint32_t

Count of statistics

tags   PFTagModel const* const*
may be nullptr

(Optional) List of player's tags for segmentation. An array of tagsCount pointers.

tagsCount   uint32_t

Count of tags

titleId   const char*
is null-terminated

(Optional) Title ID this player profile applies to.

totalValueToDateInUSD   uint32_t const*
may be nullptr

(Optional) Sum of the player's purchases made with real-money currencies, converted to US dollars equivalent and represented as a whole number of cents (1/100 USD). For example, 999 indicates nine dollars and ninety-nine cents.

valuesToDate   PFValueToDateModel const* const*
may be nullptr

(Optional) List of the player's lifetime purchase totals, summed by real-money currency. An array of valuesToDateCount pointers.

valuesToDateCount   uint32_t

Count of valuesToDate

Requirements

Header: PFTypes.h

See also

PFTypes members