Public Member Functions | Static Public Member Functions | Properties

OFPlayedGame Class Reference

#import <OFPlayedGame.h>

List of all members.

Public Member Functions

(BOOL) - isOwnedByCurrentUser
(OFRequestHandle *) - getGameIcon
(OFUserGameStat *) - getLocalUsersGameStat

Static Public Member Functions

(void) + setDelegate:
(OFRequestHandle *) + getFeaturedGames
(NSString *) + getResourceName

Properties

NSString * name
NSString * clientApplicationId
NSString * iTunesAppStoreUrl
NSMutableArray * userGameStats
NSString * iconUrl
NSUInteger totalGamerscore
NSUInteger friendsWithApp
BOOL favorite
NSString * review

Detailed Description

The OFPlayedGame interface allows you to get a list of your featured games. This object will allow you to query information about the game, such as its name and its apple store url, but also allow you to query specific relationships between this game and the current user.


Member Function Documentation

+ (OFRequestHandle*) getFeaturedGames

Get a list of OFPlayedGames which are featured by the app.

Returns:
OFRequestHandle for the server request. Use this to cancel the request
Note:
Invokes - (void)didGetFeaturedGames:(NSArray*)featuredGames on success and
  • (void)didFailGetFeaturedGames on failure.
- (OFRequestHandle*) getGameIcon

get the game icon image

Returns:
OFRequestHandle for the server request. Use this to cancel the request
Note:
Invokes - (void)didGetGameIcon:(UIImage*)image OFPlayedGame:(OFPlayedGame*)game; on success and
  • (void)didFailGetGameIconOFPlayedGame(OFPlayedGame*)game on failure.
- (OFUserGameStat*) getLocalUsersGameStat
+ (NSString*) getResourceName
- (BOOL) isOwnedByCurrentUser

Whether or not the current user has the game.

Returns:
BOOL YES if the current user owns the game.
+ (void) setDelegate: (id< OFPlayedGameDelegate >)  delegate

Set a delegate for all OFPlayedGame related actions. Must adopt the OFPlayedGameDelegate protocol.

Note:
Defaults to nil. Weak reference

Property Documentation

- (NSString *) clientApplicationId [read, assign]

The client application id for the game

- (BOOL) favorite [read, assign]
- (NSUInteger) friendsWithApp [read, assign]
- (NSString *) iconUrl [read, assign]
- (NSString *) iTunesAppStoreUrl [read, assign]

The iTunes app store url to buy the app

- (NSString *) name [read, assign]

The name of the game

- (NSString *) review [read, assign]
- (NSUInteger) totalGamerscore [read, assign]
- (NSMutableArray *) userGameStats [read, assign]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Properties