Skip to content

XMediator::Api::UserProperties

Public Functions

Name
UserProperties(string userId =null, CustomProperties customProperties =null, DateTimeOffset? installDate =null, InAppPurchaseSummary inAppPurchaseSummary =null)
Creates a new UserProperties instance with the provided values.
override bool Equals(object obj)
override int GetHashCode()
override string ToString()
UserProperties CopyWith(string userId =null, DateTimeOffset? installDate =null, InAppPurchaseSummary inAppPurchaseSummary =null, Action< CustomProperties.Builder > customPropertiesEditAction =null)
Creates a new UserProperties instance with the current values as defaults, but overrideable.

Public Properties

Name
string UserId
The current user's unique identifier.
DateTimeOffset? InstallDate
The date the user installed the app, represented as a DateTimeOffset.
InAppPurchaseSummary InAppPurchaseSummary
The user's in-app purchase summary.
CustomProperties CustomProperties
The current user's custom properties

Public Functions Documentation

function UserProperties

UserProperties(
    string userId =null,
    CustomProperties customProperties =null,
    DateTimeOffset? installDate =null,
    InAppPurchaseSummary inAppPurchaseSummary =null
)

Creates a new UserProperties instance with the provided values.

Parameters:

  • userId An Id that uniquely identifies a user on your app. This value is optional and not mandatory.
  • customProperties Custom properties object with additional properties you can provide.
  • installDate The date the user installed the app, represented as a DateTimeOffset. This value is optional and not mandatory.
  • inAppPurchaseSummary The user's in-app purchase summary. This value is optional and not mandatory.

function Equals

override bool Equals(
    object obj
)

function GetHashCode

override int GetHashCode()

function ToString

override string ToString()

function CopyWith

UserProperties CopyWith(
    string userId =null,
    DateTimeOffset? installDate =null,
    InAppPurchaseSummary inAppPurchaseSummary =null,
    Action< CustomProperties.Builder > customPropertiesEditAction =null
)

Creates a new UserProperties instance with the current values as defaults, but overrideable.

Parameters:

  • userId The user id. If null, the current value of UserId will be used.
  • installDate The install date. If null, the current value of InstallDate will be used.
  • inAppPurchaseSummary The in-app purchase summary. If null, the current value of InAppPurchaseSummary will be used.
  • customPropertiesEditAction An action which will be invoked with a CustomProperties.Builder instance, allowing the caller to modify the custom properties. If null, the properties will be left unchanged.

Return: A new UserProperties with the modified properties.

This convenience method does not allow to null the UserId. If that is desired, you should create a new instance instead (just don't forget to set again the previous properties that you do not want to lose).

Public Property Documentation

property UserId

string UserId;

The current user's unique identifier.

property InstallDate

DateTimeOffset? InstallDate;

The date the user installed the app, represented as a DateTimeOffset.

property InAppPurchaseSummary

InAppPurchaseSummary InAppPurchaseSummary;

The user's in-app purchase summary.

property CustomProperties

CustomProperties CustomProperties;

The current user's custom properties


Updated on 2025-06-06 at 15:48:42 +0000