52 lines
1.8 KiB
Objective-C
52 lines
1.8 KiB
Objective-C
//
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "BaseModel.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
NSUInteger NSUIntegerMaxValue(void);
|
|
|
|
@interface TestModel : BaseModel
|
|
|
|
@property (nonatomic) double doubleValue;
|
|
@property (nonatomic) float floatValue;
|
|
@property (nonatomic) uint64_t uint64Value;
|
|
@property (nonatomic) int64_t int64Value;
|
|
@property (nonatomic) NSUInteger nsuIntegerValue;
|
|
@property (nonatomic) NSInteger nsIntegerValue;
|
|
@property (nonatomic, nullable) NSNumber *nsNumberValueUsingInt64;
|
|
@property (nonatomic, nullable) NSNumber *nsNumberValueUsingUInt64;
|
|
@property (nonatomic, nullable) NSDate *dateValue;
|
|
|
|
- (instancetype)initWithUniqueId:(NSString *)uniqueId NS_UNAVAILABLE;
|
|
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
|
|
|
// --- CODE GENERATION MARKER
|
|
|
|
// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run
|
|
// `sds_codegen.sh`.
|
|
|
|
// clang-format off
|
|
|
|
- (instancetype)initWithUniqueId:(NSString *)uniqueId
|
|
dateValue:(nullable NSDate *)dateValue
|
|
doubleValue:(double)doubleValue
|
|
floatValue:(float)floatValue
|
|
int64Value:(int64_t)int64Value
|
|
nsIntegerValue:(NSInteger)nsIntegerValue
|
|
nsNumberValueUsingInt64:(nullable NSNumber *)nsNumberValueUsingInt64
|
|
nsNumberValueUsingUInt64:(nullable NSNumber *)nsNumberValueUsingUInt64
|
|
nsuIntegerValue:(NSUInteger)nsuIntegerValue
|
|
uint64Value:(uint64_t)uint64Value
|
|
NS_SWIFT_NAME(init(uniqueId:dateValue:doubleValue:floatValue:int64Value:nsIntegerValue:nsNumberValueUsingInt64:nsNumberValueUsingUInt64:nsuIntegerValue:uint64Value:));
|
|
|
|
// clang-format on
|
|
|
|
// --- CODE GENERATION MARKER
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|