Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Contact

Wrapper around dc_contact_t*

Hierarchy

  • Contact

Index

Constructors

constructor

Properties

dc_contact

dc_contact: NativeContact

Accessors

authName

  • get authName(): string
  • Get original contact name. This is the name of the contact as defined by the contact themself. If the contact themself does not define such a name, an empty string is returned.

    Returns string

color

  • get color(): string

lastSeen

  • get lastSeen(): number

status

  • get status(): string
  • contact's status

    Status is the last signature received in a message from this contact.

    Returns string

Methods

getAddress

  • getAddress(): string

getDisplayName

  • getDisplayName(): string

getId

  • getId(): number

getName

  • getName(): string

getNameAndAddress

  • getNameAndAddress(): string

getProfileImage

  • getProfileImage(): string

isBlocked

  • isBlocked(): boolean

isVerified

  • isVerified(): boolean

toJson

  • toJson(): { address: string; authName: string; color: string; displayName: string; id: number; isBlocked: boolean; isVerified: boolean; lastSeen: number; name: string; nameAndAddr: string; profileImage: string; status: string }
  • Returns { address: string; authName: string; color: string; displayName: string; id: number; isBlocked: boolean; isVerified: boolean; lastSeen: number; name: string; nameAndAddr: string; profileImage: string; status: string }

    • address: string
    • authName: string
    • color: string
    • displayName: string
    • id: number
    • isBlocked: boolean
    • isVerified: boolean
    • lastSeen: number
    • name: string
    • nameAndAddr: string
    • profileImage: string
    • status: string

wasSeenRecently

  • wasSeenRecently(): boolean

Generated using TypeDoc