InboxEntryDeletedEvent
Holds data of event that arrives when Thread message is deleted.
Static Methods
typeStr()
Returns the event type as a string. This method returns the constant string `"inboxEntryDeleted"`, identifying the type of this event as `inboxEntryDeleted`.
public static func typeStr() -> String
Type | Description |
---|---|
String | A `String` representing the event type, in this case, `"inboxEntryDeleted"`. |
Methods
handleWith(cb:)
Handles the event by calling the provided callback with an optional argument. This implementation passes the `data` property to the callback.
public func handleWith(
cb: @escaping ((Any?) -> Void)
)
Name | Type | Description |
---|---|---|
cb | @escaping ((Any?) -> Void) | A closure that accepts an optional `Any?` argument, representing the data to be passed when the event is handled. |
getChannel()
Returns the event channel as a string. This implementation returns the string in the format `"inbox/{inboxId}/entries"`, where `inboxId` is obtained from the `data` property.
public func getChannel() -> String
Type | Description |
---|---|
String | A `String` representing the event channel, in this case, `"inbox/{inboxId}/entries"`. |