include/OFAbridgedHighScore.h

Go to the documentation of this file.
00001 //  Copyright 2009-2010 Aurora Feint, Inc.
00002 // 
00003 //  Licensed under the Apache License, Version 2.0 (the "License");
00004 //  you may not use this file except in compliance with the License.
00005 //  You may obtain a copy of the License at
00006 //  
00007 //      http://www.apache.org/licenses/LICENSE-2.0
00008 //      
00009 //  Unless required by applicable law or agreed to in writing, software
00010 //  distributed under the License is distributed on an "AS IS" BASIS,
00011 //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012 //  See the License for the specific language governing permissions and
00013 //  limitations under the License.
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 
 All Classes Files Functions Variables Enumerations Enumerator Properties