using LANCommander.SDK.Models; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace LANCommander.SDK.Services { public class PlaySessionService { private readonly ILogger _logger; private readonly Client _client; public PlaySessionService(Client client) { _client = client; } public PlaySessionService(Client client, ILogger logger) { _client = client; _logger = logger; } public async Task> GetAsync() { return await _client.GetRequestAsync>("/api/PlaySessions"); } public async Task> GetAsync(Guid gameId) { return await _client.PostRequestAsync>($"/api/PlaySessions/{gameId}"); } } }