LootLocker Unreal SDK 11.1.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
ULootLockerIdentityRequestHandler Class Reference

#include <LootLockerIdentityRequestHandler.h>

Inheritance diagram for ULootLockerIdentityRequestHandler:
Collaboration diagram for ULootLockerIdentityRequestHandler:

Public Member Functions

 ULootLockerIdentityRequestHandler ()

Static Public Member Functions

static FString GetIdentity (const FLootLockerPlayerData &PlayerData, const FLootLockerIdentityResponseDelegate &OnComplete)
static FString LookupIdentities (const FLootLockerPlayerData &PlayerData, const FLootLockerIdentityLookupRequest &Request, const FLootLockerIdentityLookupResponseDelegate &OnComplete)
static FString LinkProvider (const FLootLockerPlayerData &PlayerData, const FLootLockerIdentityLinkRequest &Request, const FLootLockerIdentityLinkResponseDelegate &OnComplete)
static FString UnlinkProvider (const FLootLockerPlayerData &PlayerData, const FString &CredentialId, const FLootLockerDefaultDelegate &OnComplete)
static FString PreviewIdentityMerge (const FLootLockerPlayerData &PlayerData, const FString &MergeIdentityId, const FLootLockerIdentityMergePreviewResponseDelegate &OnComplete)
static FString MergeIdentities (const FLootLockerPlayerData &PlayerData, const FLootLockerIdentityMergeRequest &Request, const FLootLockerIdentityMergeResponseDelegate &OnComplete)
static FString ProviderToSlug (ELootLockerIdentityProvider Provider)
 The wire slug for a provider, which is the lowercased enumerator name.
static void ParseLinkConflict (FLootLockerIdentityLinkResponse &Response)
 Parses the 409 merge offer onto the response.
static ELootLockerIdentityProvider SlugToProvider (const FString &Slug)
 Resolves a provider slug to its enumerator, or Unknown when this SDK does not map it.
static void MarkProvidersPresent (FLootLockerIdentityResponse &Response)
 Sets has_providers when the payload carried a providers array.
static FString GetProviderCredentialId (const FLootLockerIdentityResponse &Identity, ELootLockerIdentityProvider Provider)
 The credential id for a provider, or an empty string when no credential for it is linked.

Constructor & Destructor Documentation

◆ ULootLockerIdentityRequestHandler()

ULootLockerIdentityRequestHandler::ULootLockerIdentityRequestHandler ( )
inline

Member Function Documentation

◆ GetIdentity()

FString ULootLockerIdentityRequestHandler::GetIdentity ( const FLootLockerPlayerData & PlayerData,
const FLootLockerIdentityResponseDelegate & OnComplete )
static

◆ GetProviderCredentialId()

FString ULootLockerIdentityRequestHandler::GetProviderCredentialId ( const FLootLockerIdentityResponse & Identity,
ELootLockerIdentityProvider Provider )
static

The credential id for a provider, or an empty string when no credential for it is linked.

◆ LinkProvider()

FString ULootLockerIdentityRequestHandler::LinkProvider ( const FLootLockerPlayerData & PlayerData,
const FLootLockerIdentityLinkRequest & Request,
const FLootLockerIdentityLinkResponseDelegate & OnComplete )
static

◆ LookupIdentities()

FString ULootLockerIdentityRequestHandler::LookupIdentities ( const FLootLockerPlayerData & PlayerData,
const FLootLockerIdentityLookupRequest & Request,
const FLootLockerIdentityLookupResponseDelegate & OnComplete )
static

◆ MarkProvidersPresent()

void ULootLockerIdentityRequestHandler::MarkProvidersPresent ( FLootLockerIdentityResponse & Response)
static

Sets has_providers when the payload carried a providers array.

FJsonObjectConverter cannot tell an absent key from an empty array, so the flag is resolved from the raw body.

Exposed so the flag can be asserted in tests.

◆ MergeIdentities()

FString ULootLockerIdentityRequestHandler::MergeIdentities ( const FLootLockerPlayerData & PlayerData,
const FLootLockerIdentityMergeRequest & Request,
const FLootLockerIdentityMergeResponseDelegate & OnComplete )
static

◆ ParseLinkConflict()

void ULootLockerIdentityRequestHandler::ParseLinkConflict ( FLootLockerIdentityLinkResponse & Response)
static

Parses the 409 merge offer onto the response.

Exposed so the conflict path can be asserted in tests.

◆ PreviewIdentityMerge()

FString ULootLockerIdentityRequestHandler::PreviewIdentityMerge ( const FLootLockerPlayerData & PlayerData,
const FString & MergeIdentityId,
const FLootLockerIdentityMergePreviewResponseDelegate & OnComplete )
static

◆ ProviderToSlug()

FString ULootLockerIdentityRequestHandler::ProviderToSlug ( ELootLockerIdentityProvider Provider)
static

The wire slug for a provider, which is the lowercased enumerator name.

Exposed so the mapping can be asserted in tests without going through the network.

◆ SlugToProvider()

ELootLockerIdentityProvider ULootLockerIdentityRequestHandler::SlugToProvider ( const FString & Slug)
static

Resolves a provider slug to its enumerator, or Unknown when this SDK does not map it.

Exposed so the mapping can be asserted in tests.

◆ UnlinkProvider()

FString ULootLockerIdentityRequestHandler::UnlinkProvider ( const FLootLockerPlayerData & PlayerData,
const FString & CredentialId,
const FLootLockerDefaultDelegate & OnComplete )
static