Files
rudder-csharp-sdk/Services/PlayerService.cs
T

18 lines
577 B
C#
Raw Permalink Normal View History

2026-08-12 14:04:55 +03:00
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);
}