All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Modules Pages
NCCategory.h
Go to the documentation of this file.
1#import "NCExport.h"
2#import <Foundation/Foundation.h>
3
15DEFAULT_EXPORT_ATTRIBUTE
16@interface NCCategory : NSObject
17
21- (nonnull instancetype)initWithId:(int32_t)id
22 name:(nonnull NSString *)name
23 imageUrl:(nullable NSString *)imageUrl;
24
28+ (nonnull instancetype)categoryWithId:(int32_t)id
29 name:(nonnull NSString *)name
30 imageUrl:(nullable NSString *)imageUrl;
31
35@property (nonatomic, readonly) int32_t id;
36
40@property (nonatomic, readonly, nonnull) NSString * name;
41
45@property (nonatomic, readonly, nullable) NSString * imageUrl;
46
47@end