using System.Net.Http.Json; using TIAM.Entities.TransferDestinations; using TIAMWebApp.Shared.Application.Interfaces; using TIAMWebApp.Shared.Application.Models; namespace TIAMMobileApp.Services { public class TransferDataService : ITransferDataService { private readonly HttpClient http; public TransferDataService(HttpClient http) { this.http = http; } /// /// calls the TransferDataAPI to get the list of destinations public Task GetDestinationsAsync() { return http.GetFromJsonAsync("TransferDataAPI"); } public Task GetDestinationAsync(string destinationId) { return http.GetFromJsonAsync($"TransferDataAPI/{destinationId}"); } } }