ifndef smartSDKHeader_h
define smartSDKHeader_h
typedef void (^IDBLOCK)(id obj);
typedef void (^DICTBLOCK)(NSDictionary *dict);
typedef void (^ERRORBLOCK)(NSError *error);
typedef void (^LISTBLOCK)(NSArray *list);
typedef void (^BOOLBLOCK)(BOOL boolValue);
typedef void (^INTBLOCK)(int intValue);
typedef void (^FLOATBLOCK)(float floatValue);
typedef void (^STRINGBLOCK)(NSString *str);
typedef void (^VOIDBLOCK)(void);
endif /* smartSDKHeader_h */
使用:返回一個int型
- (void)getAllTicketWaitTodoListCount:(INTBLOCK)success Failure:(VOIDBLOCK)failure;
返回一個數(shù)組類型
- (void)getTicketAreaListWithRole:(NSString *)role Success:(LISTBLOCK)success Failure:(VOIDBLOCK)failure;
需要返回什么類型就寫哪個Block就可以了。