ActionMessage

public class ActionMessage : BaseMessage

Action messages are received for real-time group events. The action message class has the following variables.

  • actionBy defines action taken by the user.

    Declaration

    Swift

    @objc
    public var actionBy: AppEntity? { get set }
  • actionFor defines action taken for the user.

    Declaration

    Swift

    @objc
    public var actionFor: AppEntity? { get set }
  • actionOn defines action taken on the group.

    Declaration

    Swift

    @objc
    public var actionOn: AppEntity? { get set }
  • message defines the action taken.

    Declaration

    Swift

    @objc
    public var message: String? { get set }
  • message defines the message for the action taken.

    Declaration

    Swift

    @objc
    public var rawData: String? { get set }
  • oldScope defines the older scope of the user in the group.

    Declaration

    Swift

    @objc
    public var oldScope: CometChat.GroupMemberScopeType { get set }
  • newScope defines the new scope of the user in the group.

    Declaration

    Swift

    @objc
    public var newScope: CometChat.GroupMemberScopeType { get set }
  • Declaration

    Swift

    public static func actionMessage(fromJSON message: [String : Any]?) -> (BaseMessage?, CometChatException?)

    Parameters

    message

    pass a json you want to convert to Tye of BaseMessage.

  • This method will provide you a string representation of ActionMessageObject.

    Declaration

    Swift

    @objc
    public func stringValue() -> String