public interface GameMethods
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteAchievement(java.lang.String userId,
java.net.URL achievementURL)
Deletes the achievement for a user.
|
boolean |
deleteAchievement(java.net.URL achievementURL)
Deletes the achievement for the current user.
|
boolean |
deleteScore()
Deletes the current score for the current user.
|
boolean |
deleteScore(java.lang.String userId)
Deletes the current score for a user.
|
ResponseList<Achievement> |
getAchievements()
Returns the achievements for the current user.
|
ResponseList<Achievement> |
getAchievements(Reading reading)
Returns the achievements for the current user.
|
ResponseList<Achievement> |
getAchievements(java.lang.String userId)
Returns the achievements for a user.
|
ResponseList<Achievement> |
getAchievements(java.lang.String userId,
Reading reading)
Returns the achievements for a user.
|
ResponseList<Score> |
getScores()
Returns the current scores for a user in games.
|
ResponseList<Score> |
getScores(Reading reading)
Returns the current scores for a user in games.
|
ResponseList<Score> |
getScores(java.lang.String userId)
Returns the current scores for the current user in games.
|
ResponseList<Score> |
getScores(java.lang.String userId,
Reading reading)
Returns the current scores for the current user in games.
|
java.lang.String |
postAchievement(java.lang.String userId,
java.net.URL achievementURL)
Posts the achievement for a user.
|
java.lang.String |
postAchievement(java.net.URL achievementURL)
Posts the achievement for the current user.
|
boolean |
postScore(int scoreValue)
Posts the score for the current user.
|
boolean |
postScore(java.lang.String userId,
int scoreValue)
Posts the score for a user.
|
ResponseList<Achievement> getAchievements() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Achievement> getAchievements(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Achievement> getAchievements(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Achievement> getAchievements(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postAchievement(java.net.URL achievementURL)
throws FacebookException
achievementURL - the unique URL of the achievement which the current user achievedFacebookException - when Facebook service or network is unavailablejava.lang.String postAchievement(java.lang.String userId,
java.net.URL achievementURL)
throws FacebookException
userId - the ID of a userachievementURL - the unique URL of the achievement which the user achievedFacebookException - when Facebook service or network is unavailableboolean deleteAchievement(java.net.URL achievementURL)
throws FacebookException
achievementURL - the unique URL of the achievement to deleteFacebookException - when Facebook service or network is unavailableboolean deleteAchievement(java.lang.String userId,
java.net.URL achievementURL)
throws FacebookException
userId - the ID of a userachievementURL - the unique URL of the achievement to deleteFacebookException - when Facebook service or network is unavailableResponseList<Score> getScores() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Score> getScores(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Score> getScores(java.lang.String userId) throws FacebookException
userId - the ID of the userFacebookException - when Facebook service or network is unavailableResponseList<Score> getScores(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of the userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean postScore(int scoreValue)
throws FacebookException
scoreValue - numeric score with valueFacebookException - when Facebook service or network is unavailableboolean postScore(java.lang.String userId,
int scoreValue)
throws FacebookException
userId - the ID of a userscoreValue - numeric score with valueFacebookException - when Facebook service or network is unavailableboolean deleteScore()
throws FacebookException
FacebookException - when Facebook service or network is unavailableboolean deleteScore(java.lang.String userId)
throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailable