예제 #1
0
 /// <summary>
 /// Returns a list of earnings
 /// </summary>
 /// <param name="id">The id of the player whose earnings should be returned</param>
 /// <param name="achievementID">Use this to return earnings relating to the specified achievement</param>
 /// <param name="questID">
 /// Use this to return earnings relating to the achievements that correspond
 /// to the specified quest.  This overrides the "achievementID" parameter.\
 /// </param>
 /// <param name="friendsOf">Return earnings of players who are friends with the specified player instead?</param>
 /// <param name="includePublic">Include public earnings?</param>
 /// <param name="start">The zero-based index of the first earning to return</param>
 /// <param name="count">How many earnings should be returned?</param>
 /// <param name="startComments">The zero-based index of the first comment to be returned</param>
 /// <param name="countComments">How many comments should be returned?</param>
 /// <param name="includeDeletedComments">Should deleted comments be returned?</param>
 /// <returns>GET: /JSON/Earnings</returns>
 public JsonResult Earnings(
     int?id            = null,
     int?achievementID = null,
     int?questID       = null,
     bool friendsOf    = false,
     int?start         = null,
     int?count         = null,
     int?startComments = null,
     int?countComments = null)
 {
     return(Json(EarningsViewModel.Populate(id, achievementID, questID, friendsOf, start, count, startComments, countComments), JsonRequestBehavior.AllowGet));
 }