ReceivedFileTransferInvitation

class ReceivedFileTransferInvitation(    val session: Session,     sender: Contact,     var id: String,     fileInfo: Session.FileInfo) : ReceivedInvitation

Constructors

Link copied to clipboard
fun ReceivedFileTransferInvitation(    session: Session,     sender: Contact,     id: String,     fileInfo: Session.FileInfo)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class FileObject(    val file: ByteArray,     val name: String,     val type: String)
Link copied to clipboard
sealed class Result

Functions

Link copied to clipboard
open override fun accept(): Promise

Accepts this invitation & notifies sender

Link copied to clipboard
open override fun decline(reason: String)

Declines this invitation & notifies sender

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 getFileInfo(): Session.FileInfo
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

Link copied to clipboard
open override fun toString(): String

Properties

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