The presence property class that contains presence properties, including the publisher's user ID and current presence state, and the platform used by the online device, as well as the presence's extension information, update time, and subscription expiration time.

Constructors

  • Parameters

    • params: {
          expiryTime: string;
          lastTime: string;
          publisher: string;
          statusDescription: string;
          statusDetails: any;
      }
      • expiryTime: string
      • lastTime: string
      • publisher: string
      • statusDescription: string
      • statusDetails: any

    Returns ChatPresence

Properties

expiryTime: string

The Unix timestamp when the presence subscription expires. The unit is second.

lastTime: string

The Unix timestamp when the presence state is last updated. The unit is second.

publisher: string

The user ID of the presence publisher.

statusDescription: string

The custom online state such as busy, away, or hidden.

statusDetails: Map<string, number>

The details of the current presence state.