Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a ContextInfo.

Hierarchy

  • ContextInfo

Implements

Index

Constructors

constructor

Properties

Optional actionLink

actionLink: IActionLink

ContextInfo actionLink.

conversionData

conversionData: Uint8Array

ContextInfo conversionData.

conversionDelaySeconds

conversionDelaySeconds: number

ContextInfo conversionDelaySeconds.

conversionSource

conversionSource: string

ContextInfo conversionSource.

Optional disappearingMode

disappearingMode: IDisappearingMode

ContextInfo disappearingMode.

entryPointConversionApp

entryPointConversionApp: string

ContextInfo entryPointConversionApp.

entryPointConversionDelaySeconds

entryPointConversionDelaySeconds: number

ContextInfo entryPointConversionDelaySeconds.

entryPointConversionSource

entryPointConversionSource: string

ContextInfo entryPointConversionSource.

ephemeralSettingTimestamp

ephemeralSettingTimestamp: number | Long

ContextInfo ephemeralSettingTimestamp.

ephemeralSharedSecret

ephemeralSharedSecret: Uint8Array

ContextInfo ephemeralSharedSecret.

expiration

expiration: number

ContextInfo expiration.

Optional externalAdReply

externalAdReply: IExternalAdReplyInfo

ContextInfo externalAdReply.

forwardingScore

forwardingScore: number

ContextInfo forwardingScore.

groupSubject

groupSubject: string

ContextInfo groupSubject.

isForwarded

isForwarded: boolean

ContextInfo isForwarded.

mentionedJid

mentionedJid: string[]

ContextInfo mentionedJid.

parentGroupJid

parentGroupJid: string

ContextInfo parentGroupJid.

participant

participant: string

ContextInfo participant.

Optional placeholderKey

placeholderKey: IMessageKey

ContextInfo placeholderKey.

Optional quotedAd

quotedAd: IAdReplyInfo

ContextInfo quotedAd.

Optional quotedMessage

quotedMessage: IMessage

ContextInfo quotedMessage.

remoteJid

remoteJid: string

ContextInfo remoteJid.

stanzaId

stanzaId: string

ContextInfo stanzaId.

Methods

toJSON

  • toJSON(): {}

Static create

Static decode

  • decode(reader: Uint8Array | Reader, length?: number): ContextInfo
  • Decodes a ContextInfo message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

    Returns ContextInfo

    ContextInfo

Static decodeDelimited

  • decodeDelimited(reader: Uint8Array | Reader): ContextInfo
  • Decodes a ContextInfo message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns ContextInfo

    ContextInfo

Static encode

  • Encodes the specified ContextInfo message. Does not implicitly verify messages.

    Parameters

    • message: IContextInfo

      ContextInfo message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

Static encodeDelimited

  • encodeDelimited(message: IContextInfo, writer?: Writer): Writer
  • Encodes the specified ContextInfo message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IContextInfo

      ContextInfo message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

Static fromObject

  • Creates a ContextInfo message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {}

      Plain object

      • [k: string]: any

    Returns ContextInfo

    ContextInfo

Static toObject

  • toObject(message: ContextInfo, options?: IConversionOptions): {}
  • Creates a plain object from a ContextInfo message. Also converts values to other types if specified.

    Parameters

    • message: ContextInfo

      ContextInfo

    • Optional options: IConversionOptions

    Returns {}

    Plain object

    • [k: string]: any

Static verify

  • verify(message: {}): string
  • Verifies a ContextInfo message.

    Parameters

    • message: {}

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc