HIVE SDK for iOS

HIVESocialHive.h
Go to the documentation of this file.
1 
20 #import <Foundation/Foundation.h>
21 
22 @class HIVEResultAPI;
23 
24 
32 typedef NS_ENUM(NSUInteger, HIVEFriendType) {
33 
34  kHIVEFriendTypeIN_GAME = 0,
35  kHIVEFriendTypeOUT_GAME,
36  kHIVEFriendTypeINVITED,
37  kHIVEFriendTypeALL_GAME,
38 };
39 
40 
48 typedef NS_ENUM(NSUInteger, HIVEDialogType) {
49 
50  kHIVEDialogTypeHOME = 0,
51  kHIVEDialogTypeGAME,
52  kHIVEDialogTypeUSER,
53  kHIVEDialogTypeCAFE,
54  kHIVEDialogTypeINQUIRY,
55  kHIVEDialogTypeMESSAGE
56 };
57 
58 
59 
67 typedef NS_ENUM(NSUInteger, HIVEProfileRelationRouteType) {
68  kHIVEProfileRelationRouteTypeDefault = 0,
69  kHIVEProfileRelationRouteTypeHive = 1,
70  kHIVEProfileRelationRouteTypeFacebook = 2,
71  kHIVEProfileRelationRouteTypeGame = 3,
72  kHIVEProfileRelationRouteTypeContact = 4
73 };
74 
75 
76 
77 
85 // REMOVE: 모든 정보들을 다 전달 받아서 사용하고 있는지 확인 필요. testAccount, assnet, relationRoute 등...
86 @interface HIVEProfileHive : NSObject <NSCopying>
87 
88  @property (nonatomic, copy) NSString *vid;
89  @property (nonatomic, copy) NSString *uid;
90  @property (nonatomic, copy) NSString *identifier;
91  @property (nonatomic, copy) NSString *userName;
92  @property (nonatomic, copy) NSString *facebookId;
93  @property (nonatomic, copy) NSString *profileImageUrl;
94  @property (nonatomic, copy) NSString *country;
95  @property (nonatomic, copy) NSString *comment;
96  @property (nonatomic) BOOL testAccount;
97 
98  // 이하 세개 필드는 HIVE 접속 유저의 추가 정보.
99  @property (nonatomic, copy) NSString *email;
100  @property (nonatomic, copy) NSString *birthday;
101  @property (nonatomic, copy) NSString *gender;
102 
103  // 이하 두개 필드는 HIVE 친구 추가정보.
104 
105  @property (nonatomic) BOOL gameFriend;
106  @property (nonatomic, copy) NSString *assnet;
107 
108  @property (nonatomic) HIVEProfileRelationRouteType relationRoute;
109 
110  - (NSString *)toJson;
111 
112 @end
113 
114 
122 @interface HIVEMessageContent : NSObject <NSCopying>
123 
124  @property (nonatomic, copy) NSString *vid;
125  @property (nonatomic, copy) NSString *uid;
126  @property (nonatomic, copy) NSString *message;
127  @property (nonatomic, copy) NSString *imageUrl;
128  @property (nonatomic, copy) NSString *thumbnailImageUrl;
129  @property BOOL usePush;
130 
131  - (id)initWith:(NSString *)vid
132  uid:(NSString *)uid
133  message:(NSString *)message
134  imageUrl:(NSString *)imageUrl
135  thumbnailImageUrl:(NSString *)thumbnailImageUrl
136  usePush:(BOOL)usePush;
137 
138  - (NSString *)toJson;
139 
140 @end
141 
142 
151 @interface HIVESocialBadge : NSObject
152 
153  @property (nonatomic) NSUInteger count;
154 
155  - (NSString *)toJson;
156 
157 @end
158 
171 typedef void (^HIVESocialProfileHandler)(HIVEResultAPI *result, NSArray<HIVEProfileHive *> *profileList);
172 
173 
185 
186 
198 
199 
212 typedef void (^HIVESocialBadgeHandler)(HIVEResultAPI *result, HIVESocialBadge *badge);
213 
214 
226 @interface HIVESocialHive : NSObject
227 
228 
239 + (void)getMyProfile:(HIVESocialProfileHandler)handler;
240 
241 
254 + (void)setMyProfile:(NSString *)comment handler:(HIVESocialProfileHandler)handler;
255 
256 
271 + (void)getFriends:(HIVEFriendType)friendType handler:(HIVESocialProfileHandler)handler;
272 
273 
286 + (void)getProfiles:(NSArray<NSString *> *)vidList handler:(HIVESocialProfileHandler)handler;
287 
288 
307 + (void)sendMessage:(HIVEMessageContent *)messageContent handler:(HIVESocialSendMessageHandler)handler;
308 
309 
322 + (void)sendInvitationMessage:(HIVEMessageContent *)messageContent handler:(HIVESocialSendMessageHandler)handler;
323 
324 
357 + (void)showHiveDialog:(HIVEDialogType)hiveDialogType vid:(NSString *)vid handler:(HIVESocialShowHiveDialogHandler)handler;
358 
359 
373 + (void)getBadgeInfo:(HIVESocialBadgeHandler)handler;
374 
375 
376 @end
377 
378 
BOOL usePush
Whether to send the contents of the note to the device to which the recipient has connected...
Definition: HIVESocialHive.h:129
void(^ HIVESocialShowHiveDialogHandler)(HIVEResultAPI *result)
Returns showing HIVE Social dialog result.
Definition: HIVESocialHive.h:197
NSString * email
Login email address. Null if none.
Definition: HIVESocialHive.h:99
HIVE user profile information
Definition: HIVESocialHive.h:86
BOOL testAccount
Whether it is a test account, true/false.
Definition: HIVESocialHive.h:96
NSString * profileImageUrl
Profile image URL.
Definition: HIVESocialHive.h:93
NSString * facebookId
Facebook Id if Facebook account is connected, null if not.
Definition: HIVESocialHive.h:92
NSString * userName
HIVE nickname or facebook name entered by the user (max 128)
Definition: HIVESocialHive.h:91
NSString * vid
The unique ID of the user issued per game when performing a HIVE login The game manages user info...
Definition: HIVESocialHive.h:88
NSString * gender
Gender , Null if none.
Definition: HIVESocialHive.h:101
NSString * comment
The user&#39;s status message (a "word" entered by the user)
Definition: HIVESocialHive.h:95
API 호출에 대한 결과를 담는 클래스
Definition: HIVEResultAPI.h:25
void(^ HIVESocialBadgeHandler)(HIVEResultAPI *result, HIVESocialBadge *badge)
HIVE Social Badge information.
Definition: HIVESocialHive.h:212
Message information.
Definition: HIVESocialHive.h:122
NSString * assnet
HIVE Membership, C: Com2us, G : GameVil, H : HIVE, or null.
Definition: HIVESocialHive.h:106
NSString * uid
Unique ID (Big Integer type) used in HIVE Social.
Definition: HIVESocialHive.h:89
HIVEProfileRelationRouteType relationRoute
A route that you became friend for the first time.
Definition: HIVESocialHive.h:108
BOOL gameFriend
Whether in game friend, true/false.
Definition: HIVESocialHive.h:105
void(^ HIVESocialSendMessageHandler)(HIVEResultAPI *result)
Returns HIVE message transmission result.
Definition: HIVESocialHive.h:184
NSString * identifier
HIVE Login ID (max 12)
Definition: HIVESocialHive.h:90
typedef NS_ENUM(NSUInteger, HIVEFriendType)
Types of Friend list.
Definition: HIVESocialHive.h:32
NSString * country
Country code according to user selection.
Definition: HIVESocialHive.h:94
void(^ HIVESocialProfileHandler)(HIVEResultAPI *result, NSArray< HIVEProfileHive *> *profileList)
Returns HIVE Profile / Friend Information.
Definition: HIVESocialHive.h:171
NSString * birthday
Birthday , Null if none.
Definition: HIVESocialHive.h:100
HIVE Social Badge information.
Definition: HIVESocialHive.h:151
HIVE users can view and modify their profile information and provide a social game service where they...
Definition: HIVESocialHive.h:226
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy