Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user