Iceshrimp.NET/Iceshrimp.Frontend/Core/Services/MetadataService.cs
2024-11-23 02:11:22 +01:00

16 lines
No EOL
473 B
C#

using Iceshrimp.Shared.Schemas.Web;
using Microsoft.AspNetCore.Components;
namespace Iceshrimp.Frontend.Core.Services;
internal class MetadataService
{
[Inject] private ApiService Api { get; set; }
public Lazy<Task<InstanceResponse>> Instance { get; set; }
public MetadataService(ApiService api)
{
Api = api;
Instance = new Lazy<Task<InstanceResponse>>(() => Api.Instance.GetInstanceAsync());
}
}