22 lines
No EOL
1.2 KiB
C#
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);
|
|
} |