ReceivedInvitation

open class ReceivedInvitation(    val session: Session,     sender: Contact,     var id: String) : Invitation

Constructors

Link copied to clipboard
fun ReceivedInvitation(    session: Session,     sender: Contact,     id: String)

Functions

Link copied to clipboard
open fun accept(): Promise
Link copied to clipboard
open fun decline(reason: String)
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 getReceivedTime(): Date

Returns invitation receive time

Link copied to clipboard
fun getSender(): Contact

Returns invitation / request sender

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