Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #pragma once
00016
00017 #import "OFResource.h"
00018
00019 @class OFService;
00020 @class OFLeaderboard;
00021 @class OFRequestHandle;
00022 class OFHttpService;
00023 class OFImageViewHttpServiceObserver;
00024
00025 @protocol OFAbridgedHighScoreDelegate;
00026
00033 @interface OFAbridgedHighScore : OFResource<OFCallbackable>
00034 {
00035 @private
00036 int64_t score;
00037 NSString* leaderboardId;
00038 NSString* displayText;
00039 NSString* userId;
00040 NSString* userName;
00041 NSString* userProfilePictureUrl;
00042 NSUInteger userGamerScore;
00043 OFPointer<OFHttpService> mHttpService;
00044 OFPointer<OFImageViewHttpServiceObserver> mHttpServiceObserver;
00045 }
00046
00053 + (void)setDelegate:(id<OFAbridgedHighScoreDelegate>)delegate;
00054
00063 - (OFRequestHandle*)getProfilePicture;
00064
00068 @property (nonatomic, readonly) int64_t score;
00069
00073 @property (nonatomic, readonly) NSString* displayText;
00074
00078 @property (nonatomic, readonly) NSString* userId;
00079
00083 @property (nonatomic, readonly) NSString* userName;
00084
00088 @property (nonatomic, readonly) NSUInteger userGamerScore;
00089
00093 + (NSString*)getResourceName;
00094 @property (nonatomic, readonly) NSString* userProfilePictureUrl;
00095
00096 @end
00097
00098
00103 @protocol OFAbridgedHighScoreDelegate
00104 @optional
00105
00112 - (void)didGetProfilePicture:(UIImage*)image OFAbridgedHighScore:(OFAbridgedHighScore*)score;
00113
00119 - (void)didFailGetProfilePictureOFAbridgedHighScore:(OFAbridgedHighScore*)score;
00120 @end
00121
00122