コード例 #1
0
 /// <summary>
 /// Get the specified user's kudosu history
 /// </summary>
 /// <param name="client">The <see cref="OrbitClient"/> to use</param>
 /// <param name="user">The user to get the history for</param>
 /// <param name="page">Optional page number to return entries for</param>
 /// <param name="limit">Optional limit to cap responses. Make sure this is equal to the max or lower otherwise pagination will fail</param>
 public static Task <IEnumerable <OsuKudosuHistory> > GetKudosuHistory(this OrbitClient client, OsuUserCard user, uint page = 0, uint?limit = null)
 {
     return(client.GetKudosuHistory(user.Id, page, limit));
 }
コード例 #2
0
 /// <summary>
 /// Gets the user's recent in-game activity
 /// </summary>
 /// <param name="client">The <see cref="OrbitClient"/> to use</param>
 /// <param name="user">The user to lookup</param>
 /// <param name="page">Optional page number to return entries for</param>
 /// <param name="limit">Optional limit to cap responses. Make sure this is equal to the max or lower otherwise pagination will fail</param>
 public static Task <IEnumerable <OsuRecentActivity> > GetUserActivity(this OrbitClient client, OsuUserCard user, uint page = 0, uint?limit = null)
 {
     return(client.GetUserActivity(user.Id, page, limit));
 }
コード例 #3
0
        /// <summary>
        /// Get scores for the provided user
        /// </summary>
        /// <param name="client">The <see cref="OrbitClient"/> to use</param>
        /// <param name="user">The user to get scores for</param>
        /// <param name="type">The <see cref="UserScoreType"/> to return</param>
        /// <param name="mode">Optional mode to filter results by</param>
        /// <param name="page">Optional page to get (based on limit)</param>
        /// <param name="limit">Optional maximum entries to return </param>
        /// <param name="includeFails">Whether to include fails when requesting recent scores</param>
        public static Task <IEnumerable <OsuScore> > GetUserScores(this OrbitClient client, OsuUserCard user, UserScoreType type, string mode, uint page = 0, uint?limit = null, bool includeFails = false)

        {
            return(client.GetUserScores(user.Id, type, mode, page, limit, includeFails));
        }
コード例 #4
0
 /// <summary>
 /// Get a user's published maps
 /// </summary>
 /// <param name="client">The <see cref="OrbitClient"/></param>
 /// <param name="user">The user to get maps by</param>
 /// <param name="type">The <see cref="UserBeatmapType"/> to filter responses by</param>
 /// <param name="limit">Optional limit to cap responses</param>
 /// <param name="page">Optional page number to fetch reliant on the <see cref="limit"/></param>
 public static Task <IEnumerable <OsuBeatmapset> > GetUserMaps(this OrbitClient client, OsuUserCard user, UserBeatmapType type, uint?limit = null, uint page = 0)
 {
     return(client.GetUserMaps(user.Id, type, limit, page));
 }