using LANCommander.SDK.Models; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Threading.Tasks; using LANCommander.SDK.Factories; namespace LANCommander.SDK.Services { public class PlaySessionClient(ApiRequestFactory apiRequestFactory) { public async Task> GetAsync() { return await apiRequestFactory .Create() .UseAuthenticationToken() .UseVersioning() .UseRoute("/api/PlaySessions") .GetAsync>(); } public async Task> GetAsync(Guid gameId) { return await apiRequestFactory .Create() .UseAuthenticationToken() .UseVersioning() .UseRoute($"/api/PlaySessions/{gameId}") .GetAsync>(); } } }