UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
Setting.h
1//
2// Setting.h
3// TSCPrinters SDK
4//
5// Created by Realbuber on 2024/4/14.
6//
7
8#ifndef Setting_h
9#define Setting_h
10
11
12#endif /* Setting_h */
13
14#import <Foundation/Foundation.h>
15
32@interface Setting : NSObject
33
44@property (nonatomic, strong) NSString *type;
45
56@property (nonatomic, strong) NSString *permission;
57
68@property (nonatomic, strong) NSString *value;
69
80@property (nonatomic, assign) double minimum;
81
92@property (nonatomic, assign) double maximum;
93
104@property (nonatomic, assign) double increment;
105
116@property (nonatomic, strong) NSArray<NSString *> *options;
117
134- (NSString *)description;
135
136@end
A class representing a configurable setting with various properties.
Definition Setting.h:33
NSString * type
The type of the setting.
Definition Setting.h:44
NSString * value
The value of the setting.
Definition Setting.h:68
double minimum
The minimum allowable value for the setting.
Definition Setting.h:80
double maximum
The maximum allowable value for the setting.
Definition Setting.h:92
NSString * description()
Converts the setting properties to a string representation.
NSString * permission
The permission level of the setting (e.g., read-only, read-write).
Definition Setting.h:56
NSArray< NSString * > * options
For "Enum" type only. List of valid values.
Definition Setting.h:116
double increment
The increment value for the setting.
Definition Setting.h:104