Iceshrimp.NET/Iceshrimp.Frontend/Core/Services/ApiService.cs
2024-09-10 01:51:27 +02:00

22 lines
No EOL
1.2 KiB
C#

using Iceshrimp.Frontend.Core.ControllerModels;
namespace Iceshrimp.Frontend.Core.Services;
internal class ApiService(ApiClient client)
{
public readonly AdminControllerModel Admin = new(client);
public readonly AuthControllerModel Auth = new(client);
public readonly DriveControllerModel Drive = new(client);
public readonly EmojiControllerModel Emoji = new(client);
public readonly NoteControllerModel Notes = new(client);
public readonly NotificationControllerModel Notifications = new(client);
public readonly SearchControllerModel Search = new(client);
public readonly SettingsControllerModel Settings = new(client);
public readonly TimelineControllerModel Timelines = new(client);
public readonly UserControllerModel Users = new(client);
public readonly FollowRequestControllerModel FollowRequests = new(client);
public readonly MiscControllerModel Misc = new(client);
public readonly ProfileControllerModel Profile = new(client);
public void SetBearerToken(string token) => client.SetToken(token);
}