CRSCommonOperation
Objective-C
@protocol CRSCommonOperation <CRSIdentifiable>
Swift
protocol CRSCommonOperation : CRSIdentifiable
Common Operation interface
-
Get the operation type
Declaration
Objective-C
- (enum CRSOperationType)operationType;
Swift
func operationType() -> CRSOperationType
Return Value
operation type
-
Get the name
Declaration
Objective-C
- (NSString *)name;
Swift
func name() -> String!
Return Value
name
-
Set the name
Declaration
Objective-C
- (void)setName:(NSString *)name;
Swift
func setName(_ name: String!)
Parameters
name
name
-
Get the operation version
Declaration
Objective-C
- (NSString *)version;
Swift
func version() -> String!
Return Value
operation version
-
Has an operation version
Declaration
Objective-C
- (BOOL)hasVersion;
Swift
func hasVersion() -> Bool
Return Value
true if has operation version
-
Set the operation version
Declaration
Objective-C
- (void)setVersion:(NSString *)version;
Swift
func setVersion(_ version: String!)
Parameters
version
operation version
-
Get the method
Return Value
method
-
Set the method
Declaration
Objective-C
- (void)setMethod:(CRSOperationMethod *)method;
Swift
func setMethod(_ method: CRSOperationMethod!)
Parameters
method
method