HIVE SDK for iOS

HIVEResultAPI.h
Go to the documentation of this file.
1 
13 #import <Foundation/Foundation.h>
14 #import "HIVEResultAPIEnum.h"
15 
25 @interface HIVEResultAPI : NSObject <NSCopying>
26 
27 @property (nonatomic, getter=getErrorCode) HIVEResultAPIType errorCode;
28 @property (nonatomic, getter=getCode) HIVEResultAPICode code;
29 @property (strong, nonatomic, getter=getErrorMessage) NSString *errorMessage;
30 @property (strong, nonatomic, getter=getMessage) NSString *message;
31 @property (strong, nonatomic) NSString *reason;
32 @property (nonatomic, getter=getLatencyMS) NSInteger latencyMS;
33 
34 + (instancetype)success;
35 + (instancetype)errorCode:(HIVEResultAPIType)errorCode code:(HIVEResultAPICode)code;
36 + (instancetype)errorCode:(HIVEResultAPIType)errorCode code:(HIVEResultAPICode)code reason:(NSString *)reason;
37 
38 - (NSString*)description;
39 - (BOOL)isSuccess;
40 - (NSString *)toJson;
41 
42 @end
43 
API 호출에 대한 결과를 담는 클래스
Definition: HIVEResultAPI.h:25
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy