CRSOperationParameters
Objective-C
@interface CRSOperationParameters : NSObject
Swift
class CRSOperationParameters : NSObject
Common Operation Parameter Attributes
-
Get the type
Declaration
Objective-C
- (enum CRSOperationParameterType)type;
Swift
func type() -> CRSOperationParameterType
Return Value
type
-
Get the code
Declaration
Objective-C
- (int)code;
Swift
func code() -> Int32
Return Value
code
-
Get the name
Declaration
Objective-C
- (NSString *)name;
Swift
func name() -> String!
Return Value
name
-
Get the operation type
Declaration
Objective-C
- (enum CRSOperationType)operationType;
Swift
func operationType() -> CRSOperationType
Return Value
operation type
-
Get the aliases
Declaration
Objective-C
- (NSArray<NSString *> *)aliases;
Swift
func aliases() -> [String]!
Return Value
aliases
-
Get the unit type
Return Value
unit type
-
Get the parameter from the parameter type
Declaration
Objective-C
+ (CRSOperationParameters *)parameter:(enum CRSOperationParameterType)type;
Swift
class func parameter(_ type: CRSOperationParameterType) -> CRSOperationParameters!
Parameters
type
operation parameter type
Return Value
parameter
-
Get the parameter from the alias
Declaration
Objective-C
+ (CRSOperationParameters *)parameterFromName:(NSString *)name;
Swift
class func parameter(fromName name: String!) -> CRSOperationParameters!
Parameters
name
name or alias
Return Value
parameter
-
Get the parameters from the alias
Declaration
Objective-C
+ (NSArray<CRSOperationParameters *> *)parametersFromName:(NSString *)name;
Swift
class func parameters(fromName name: String!) -> [CRSOperationParameters]!
Parameters
name
name or alias
Return Value
parameters
-
Get the parameter from the code
Declaration
Objective-C
+ (CRSOperationParameters *)parameterFromCode:(int)code;
Swift
class func parameter(fromCode code: Int32) -> CRSOperationParameters!
Parameters
code
parameter code
Return Value
parameter