CRSOperationMethod
Objective-C
@interface CRSOperationMethod : NSObject <CRSIdentifiable>
Swift
class CRSOperationMethod : NSObject, CRSIdentifiable
Operation Method
-
Name
Declaration
Objective-C
@property (nonatomic, strong) NSString *name;
Swift
var name: String! { get set }
-
Operation parameters
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<CRSOperationParameter *> *parameters;
Swift
var parameters: NSMutableArray! { get set }
-
Identifiers
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<CRSIdentifier *> *identifiers;
Swift
var identifiers: NSMutableArray! { get set }
-
Commonly encountered operation methods
Declaration
Objective-C
@property (nonatomic, strong) CRSOperationMethods *method;
Swift
var method: CRSOperationMethods! { get set }
-
Create
Declaration
Objective-C
+ (CRSOperationMethod *)create;
Swift
class func create() -> CRSOperationMethod!
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name;
Swift
init!(name: String!)
Parameters
name
name
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMethod:(CRSOperationMethods *)method;
Swift
init!(method: CRSOperationMethods!)
Parameters
method
operation method
Return Value
new instance
-
Has parameters
Declaration
Objective-C
- (BOOL)hasParameters;
Swift
func hasParameters() -> Bool
Return Value
true if has parameters
-
Number of parameters
Declaration
Objective-C
- (int)numParameters;
Swift
func numParameters() -> Int32
Return Value
parameters count
-
Get the parameter at the index
Declaration
Objective-C
- (CRSOperationParameter *)parameterAtIndex:(int)index;
Swift
func parameter(at index: Int32) -> CRSOperationParameter!
Parameters
index
parameter index
Return Value
parameter
-
Add the parameter
Declaration
Objective-C
- (void)addParameter:(CRSOperationParameter *)parameter;
Swift
func addParameter(_ parameter: CRSOperationParameter!)
Parameters
parameter
parameter
-
Add the parameters
Declaration
Objective-C
- (void)addParameters:(NSArray<CRSOperationParameter *> *)parameters;
Swift
func addParameters(_ parameters: [CRSOperationParameter]!)
Parameters
parameters
parameters
-
Is a commonly known method type
Declaration
Objective-C
- (BOOL)hasMethod;
Swift
func hasMethod() -> Bool
Return Value
true if has common method type
-
Update the commonly known method type using the name
Declaration
Objective-C
- (void)updateMethod;
Swift
func updateMethod()