示例#1
0
 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
     });
 }
示例#2
0
 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!;
 }