Loading...
Searching...
No Matches
NCZoneEvent.h
Go to the documentation of this file.
1#import "NCExport.h"
2#import "NCZoneEventType.h"
3#import <Foundation/Foundation.h>
4
18DEFAULT_EXPORT_ATTRIBUTE
19@interface NCZoneEvent : NSObject
20
24- (nonnull instancetype)initWithType:(NCZoneEventType)type
25 locationId:(int32_t)locationId
26 sublocationId:(int32_t)sublocationId
27 id:(int32_t)id
28 name:(nonnull NSString *)name
29 alias:(nonnull NSString *)alias;
30
34+ (nonnull instancetype)zoneEventWithType:(NCZoneEventType)type
35 locationId:(int32_t)locationId
36 sublocationId:(int32_t)sublocationId
37 id:(int32_t)id
38 name:(nonnull NSString *)name
39 alias:(nonnull NSString *)alias;
40
44@property (nonatomic, readonly) NCZoneEventType type;
45
49@property (nonatomic, readonly) int32_t locationId;
50
54@property (nonatomic, readonly) int32_t sublocationId;
55
59@property (nonatomic, readonly) int32_t id;
60
64@property (nonatomic, readonly, nonnull) NSString * name;
65
69@property (nonatomic, readonly, nonnull) NSString * alias;
70
71@end