EkoMessageReactor

@interface EkoMessageReactor : NSObject

A editor encapsulates methods for managing messages

  • The context used to create the instance

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) EkoClient *client;

    Swift

    var client: EkoClient { get }
  • The message Id associated with the instance

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) EkoMessage *message;

    Swift

    var message: EkoMessage { get }
  • Designated intializer

    Declaration

    Objective-C

    - (nonnull instancetype)initWithClient:(nonnull EkoClient *)client
                                   message:(nonnull EkoMessage *)message;

    Swift

    init(client: EkoClient, message: EkoMessage)

    Parameters

    client

    A valid context instance

    message

    A valid message object

  • React the message, this is reported to the admin panel for the moderators to see

    Declaration

    Objective-C

    - (void)addReactionWithReaction:(nonnull NSString *)reaction
                         completion:(EkoRequestCompletion _Nullable)completion;

    Swift

    func addReaction(withReaction reaction: String, completion: EkoRequestCompletion? = nil)
  • Unreact the message

    Declaration

    Objective-C

    - (void)removeReactionWithReaction:(nonnull NSString *)reaction
                            completion:(EkoRequestCompletion _Nullable)completion;

    Swift

    func removeReaction(withReaction reaction: String, completion: EkoRequestCompletion? = nil)
  • Unavailable

    Block call of init and new because this object cannot be created directly

    Declaration

    Objective-C

    - (nonnull instancetype)init;