using Iceshrimp.Frontend.Core.Miscellaneous; using Iceshrimp.Frontend.Core.Services; using Iceshrimp.Shared.Schemas; namespace Iceshrimp.Frontend.Core.ControllerModels; internal class UserControllerModel(ApiClient api) { public Task GetUser(string id) => api.CallNullable(HttpMethod.Get, $"/users/{id}"); public Task GetUserProfile(string id) => api.CallNullable(HttpMethod.Get, $"/users/{id}/profile"); [LinkPagination(20, 80)] public Task?> GetUserNotes(string id, PaginationQuery pq) => api.CallNullable>(HttpMethod.Get, $"/users/{id}/notes", pq); }