Invitation

open class Invitation(val session: Session, var id: String = Utils.randomString(22)) : Emitter

Constructors

Link copied to clipboard
fun Invitation(session: Session, id: String = Utils.randomString(22))

Types

Link copied to clipboard
object Companion
Link copied to clipboard
enum Status : Enum<Invitation.Status>
Link copied to clipboard
data class StatusChangeInfo(val status: Invitation.Status, val id: String?)

Functions

Link copied to clipboard
open fun emit(event: String, vararg args: Any): Emitter

Executes each of listeners with the given args.

Link copied to clipboard
fun getStatus(): Invitation.Status

Returns invitation status

Link copied to clipboard
open fun hasListeners(event: String): Boolean

Check if this emitter has listeners for the specified event.

Link copied to clipboard
open fun listeners(event: String): MutableList<Emitter.Listener>

Returns a list of listeners for the specified event.

Link copied to clipboard
open fun off(): Emitter

Removes all registered listeners.

open fun off(event: String): Emitter

Removes all listeners of the specified event.

open fun off(event: String, fn: Emitter.Listener): Emitter

Removes the listener.

Link copied to clipboard
open fun on(event: String, fn: Emitter.Listener): Emitter

Listens on the event.

Link copied to clipboard
open fun once(event: String, fn: Emitter.Listener): Emitter

Adds a one time listener for the event.

Link copied to clipboard
fun setStatus(status: Invitation.Status)

Set invitation status

Properties

Link copied to clipboard
var id: String
Link copied to clipboard
open val session: Session
Link copied to clipboard
var type: String

Inheritors

Link copied to clipboard
Link copied to clipboard