![]() |
00001 00002 // Copyright © 2013 Cathexis Innovations Inc. All rights reserved. 00003 00004 #import <Foundation/Foundation.h> 00005 #import "IDBlueResponse.h" 00006 #import "ObjectCollection.h" 00007 #import "CommandIdentifierClassInfo.h" 00008 00013 @interface ResponseFactory : NSObject { 00014 @private 00015 // List of CommandIdentifierClassInfo objects that maps 00016 // command identifiers into classes for handling responses for the 00017 // associated command identifier 00018 ObjectCollection* _responseMap; 00019 } 00020 00026 -(BOOL) addResponseMap: (CommandIdentifierClassInfo*) classInfo; 00027 00035 -(BOOL) addResponseMap:(int) commandIdentifier withClassInfo:(Class) classInfo; 00036 00049 -(IDBlueResponse*) getResponse: (IDBluePacket*) packet withAsync: (BOOL) async; 00050 @end