18 lines
577 B
C#
18 lines
577 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using RudderSdk.Core.Models.Player;
|
|
|
|
namespace RudderSdk.Core;
|
|
|
|
/// <summary>Player profile data.</summary>
|
|
public sealed class PlayerService
|
|
{
|
|
private readonly RudderClient _client;
|
|
|
|
internal PlayerService(RudderClient client) => _client = client;
|
|
|
|
/// <summary>Returns the player profile with wallets.</summary>
|
|
public Task<PlayerProfile> GetProfileAsync(CancellationToken cancellationToken = default)
|
|
=> _client.SendAsync<PlayerProfile>("GET", "/sdk/v1/player/information", cancellationToken);
|
|
}
|