Contact

data class Contact(phoneNumber: String, firstName: String, lastName: String?, userId: Int?, vcard: String?)

This object represents a phone contact.

Parameters

phoneNumber

Contact's phone number

firstName

Contact's first name

lastName

Optional. Contact's last name

userId

Optional. Contact's user identifier in Telegram

vcard

Optional. Additional data about the contact in the form of a vCard

Constructors

Contact
Link copied to clipboard
common
fun Contact(phoneNumber: String, firstName: String, lastName: String? = null, userId: Int? = null, vcard: String? = null)
Contact's phone number

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String?
component4
Link copied to clipboard
common
operator fun component4(): Int?
component5
Link copied to clipboard
common
operator fun component5(): String?
copy
Link copied to clipboard
common
fun copy(phoneNumber: String, firstName: String, lastName: String? = null, userId: Int? = null, vcard: String? = null): Contact
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

firstName
Link copied to clipboard
common
val firstName: String
Contact's first name
lastName
Link copied to clipboard
common
val lastName: String? = null
Optional.
phoneNumber
Link copied to clipboard
common
val phoneNumber: String
Contact's phone number
userId
Link copied to clipboard
common
val userId: Int? = null
Optional.
vcard
Link copied to clipboard
common
val vcard: String? = null
Optional.