using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Crowdin.Plugin.Server_API.Helpers; using Crowdin.Plugin.Server_API.Models.Branches; namespace Crowdin.Plugin.Server_API.Services { public class BranchApiService : BaseApiService { private static string BaseUri => SettingsHelper.GetUri("branches", SettingsHelper.GetProjectId()); private readonly CrowdinHttpClient _httpClient = CrowdinHttpClient.Default; public Task> ListBranches(CancellationToken ct) { return _httpClient.ListAllAsync(BaseUri, limit: 500, ct); } } }