public async Task<IEnumerable<TrendingTag>> GetTrendingTagsAsync(TargetFilter targetFilter) { EnsureNotCancelled(); return ((await Resolve<IAppApiEndPoint>().GetTrendingTagsAsync(targetFilter.GetDescription()).ConfigureAwait(false)).TrendTags ?? Enumerable.Empty<TrendingTagResponse.TrendTag>()).Select(t => new TrendingTag { Tag = t.TagStr, Translation = t.TranslatedName, Illustration = t.Illust }); }
public async Task<User.Info> GetUserFromIdAsync(string id, TargetFilter targetFilter) { EnsureNotCancelled(); var result = await Resolve<IAppApiEndPoint>().GetSingleUserAsync(new SingleUserRequest(id, targetFilter.GetDescription())).ConfigureAwait(false); return result.UserEntity!; }