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
53@property (nonatomic, readonly) NCZoneEventType type;
54
67@property (nonatomic, readonly) int32_t locationId;
68
81@property (nonatomic, readonly) int32_t sublocationId;
82
95@property (nonatomic, readonly) int32_t id;
96
109@property (nonatomic, readonly, nonnull) NSString * name;
110
123@property (nonatomic, readonly, nonnull) NSString * alias;
124
125@end