/// <summary> /// Updates the steam user id. /// </summary> /// <param name="json">The json object.</param> /// <returns>true if successful, else false.</returns> /// <remarks>jQuery/WCF requires a return value in order for jQuery to execute $.ajax.success.</remarks> public bool UpdateSteamUserId(SteamUserIdFacebookUserIdParameter json) { if (json == null) { throw new ArgumentNullException("json"); } _service.UpdateSteamUserId(json.FacebookUserId, json.SteamUserId); return(true); }
/// <summary> /// Publishes the last 5 achievements added within the last 5 minutes for the given user. /// </summary> /// <param name="json">The json object.</param> /// <returns>true if successful, else false.</returns> public bool PublishLatestAchievements(SteamUserIdFacebookUserIdParameter json) { if (json == null) { throw new ArgumentNullException("json"); } IEnumerable <Achievement> achievements = _service.GetLatestAchievements(json.SteamUserId); if (achievements.Any()) { AchievementsPublisher publisher = new AchievementsPublisher(); publisher.Publish(achievements, json.SteamUserId, json.FacebookUserId); } return(true); }
public bool PublishLatestAchievements(SteamUserIdFacebookUserIdParameter json) { return(true); }
public bool UpdateSteamUserId(SteamUserIdFacebookUserIdParameter json) { return(true); }