SKYAddRelationsOperation

@interface SKYAddRelationsOperation : SKYOperation

Undocumented

  • Instantiates an instance of with a list of user to be related with current user.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithType:(nonnull NSString *)relationType
                          usersToRelated:(nonnull NSArray<SKYRecord *> *)users;

    Swift

    init(type relationType: String, usersToRelated users: [SKYRecord])

    Parameters

    users

    An array of users to be related.

  • Creates and returns an instance of with a list of user to be related with current user.

    Declaration

    Objective-C

    + (nonnull instancetype)operationWithType:(nonnull NSString *)relationType
                               usersToRelated:(nonnull NSArray<SKYRecord *> *)users;

    Parameters

    users

    An array of users to be related.

  • Type of the relation, default provide follow and friend.

    Declaration

    Objective-C

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

    Swift

    var relationType: String { get set }
  • Sets or returns an array of users to be related.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<SKYRecord *> *_Nonnull usersToRelate;

    Swift

    var usersToRelate: [SKYRecord] { get set }
  • Sets or returns a block to be called when the save operation for individual record is completed. If an error occurred during the save, the will be specified.

    Declaration

    Objective-C

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

    Swift

    var perUserCompletionBlock: ((String?, Error?) -> Void)? { get set }
  • Sets or returns a block to be called when the entire operation completes. If the entire operation results in an error, the will be specified.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (NSArray<NSString *> *_Nullable, NSError *_Nullable)
            addRelationsCompletionBlock;

    Swift

    var addRelationsCompletionBlock: (([String]?, Error?) -> Void)? { get set }