MNFRealmUser

Objective-C

@interface MNFRealmUser : MNFObject

Swift

class MNFRealmUser : MNFObject

The MNFRealmUser class represents a user’s realm information.

A realm user should not be directly initialized but fetched from the server.

Immutable properties

  • @abstract The user identifier of the realm user.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull userIdentifier;

    Swift

    var userIdentifier: String { get }
  • @abstract The realm id.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSNumber *_Nonnull realmId;

    Swift

    var realmId: NSNumber { get }
  • @abstract The person id.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSNumber *_Nonnull personId;

    Swift

    var personId: NSNumber { get }
  • @abstract The user id.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSNumber *_Nonnull userId;

    Swift

    var userId: NSNumber { get }

Fetching

  • @abstract Fetches a list of realm users.

    Declaration

    Objective-C

    + (nonnull MNFJob *)fetchRealmUsersWithCompletion:
        (nullable MNFMultipleRealmUsersComletionHandler)completion;

    Swift

    class func fetchRealmUsers(completion: MNFMultipleRealmUsersComletionHandler? = nil) -> MNFJob

    Parameters

    completion

    A completion block returning a list of realm users and an error.

    Return Value

    An MNFJob containing a list of realm users and an error.

Deleting

  • @abstract Deletes a realm user.

    Declaration

    Objective-C

    - (nonnull MNFJob *)deleteRealmUserWithCompletion:
        (nullable MNFErrorOnlyCompletionHandler)completion;

    Swift

    func delete(completion: MNFErrorOnlyCompletionHandler? = nil) -> MNFJob

    Parameters

    completion

    A completion block returning an error.

    Return Value

    An MNFJob containing an error.