-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGCResponse.h
46 lines (33 loc) · 830 Bytes
/
GCResponse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* GCResponse.h
* libGlobalCache
*
* Created on 7/29/09.
* Copyright (c) 2009-2013 by NSDex. All rights reserved.
*/
#import <Foundation/Foundation.h>
@interface GCResponse : NSObject {
GCCommandType type;
BOOL dataParsed;
//General Response Stuff
int module;
int connector;
//getdevices
NSMutableArray *devices; //Array of strings
//getversion
NSString *versionString;
//sendir
int irid;
//getstate
BOOL sensorIsClosed;
}
@property(nonatomic) BOOL dataParsed;
@property(readwrite) int module;
@property(readwrite) int connector;
@property(nonatomic, retain) NSMutableArray *devices;
@property(nonatomic, retain) NSString *versionString;
@property(readwrite) int irid;
@property(readwrite) BOOL sensorIsClosed;
- (id)initWithType:(GCCommandType)t;
- (BOOL)parseData:(NSData*)data;
@end