SKYSetDisableUserOperation

@interface SKYSetDisableUserOperation : SKYOperation

SKYSetDisableUserOperation is an operation for calling the API to disable a user account.

  • User ID of user to disable.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull userID;

    Swift

    var userID: String { get set }
  • Sets or returns whether the user is disabled.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL disabled;

    Swift

    var disabled: Bool { get set }
  • Message to be shown to user.

    This message can be shown to the use to explain why the user account is disabled.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *message;

    Swift

    var message: String? { get set }
  • Date and time when the user account is automatically enabled.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nonnull) NSDate *expiry;

    Swift

    var expiry: Date { get set }
  • Block to be called when the operation completes.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (NSString *_Nonnull, NSError *_Nullable) setCompletionBlock;

    Swift

    var setCompletionBlock: ((String, Error?) -> Void)? { get set }
  • Returns an instance of operation to disable a user account.

    Declaration

    Objective-C

    + (nonnull instancetype)disableOperationWithUserID:(nonnull NSString *)userID
                                               message:(NSString *_Nullable)message
                                                expiry:(NSDate *_Nullable)expiry;

    Swift

    class func disableOperation(withUserID userID: String, message: String?, expiry: Date?) -> Self
  • Returns an instance of operation to enable a user account.

    Declaration

    Objective-C

    + (nonnull instancetype)enableOperationWithUserID:(nonnull NSString *)userID;

    Swift

    class func enable(withUserID userID: String) -> Self
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Creates an instance of operation.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserID:(nonnull NSString *)userID
                                  disabled:(BOOL)disabled
                                   message:(NSString *_Nullable)message
                                    expiry:(NSDate *_Nullable)expiry;

    Swift

    init(userID: String, disabled: Bool, message: String?, expiry: Date?)