예제 #1
0
        public static async Task <ProfileStatsEntity> QueryStats(string uid)
        {
            var json   = (await HttpTools.GetAsync(uid)).Content;
            var origin = JsonTools.SerializeProfileEntity(json);

            return(origin.data.stats.ToObject <ProfileStatsEntity>());
        }
예제 #2
0
        public static async Task <IEnumerable <ProfileAvatarEntity> > QueryAvatars(string uid)
        {
            var json   = (await HttpTools.GetAsync(uid)).Content;
            var origin = JsonTools.SerializeProfileEntity(json);

            return(origin.data.avatars.ToObject <List <ProfileAvatarEntity> >());
        }