Skip to main content
Defined in: WAProto/index.d.ts:6865

Implements

Constructors

new Header()

new Header(p?): Header
Defined in: WAProto/index.d.ts:6866

Parameters

p?
IHeader

Returns

Header

Properties

documentMessage?

optional documentMessage: null | IDocumentMessage
Defined in: WAProto/index.d.ts:6870

Implementation of

IHeader.documentMessage

hasMediaAttachment?

optional hasMediaAttachment: null | boolean
Defined in: WAProto/index.d.ts:6869

Implementation of

IHeader.hasMediaAttachment

imageMessage?

optional imageMessage: null | IImageMessage
Defined in: WAProto/index.d.ts:6871

Implementation of

IHeader.imageMessage

jpegThumbnail?

optional jpegThumbnail: null | Uint8Array<ArrayBufferLike>
Defined in: WAProto/index.d.ts:6872

Implementation of

IHeader.jpegThumbnail

locationMessage?

optional locationMessage: null | ILocationMessage
Defined in: WAProto/index.d.ts:6874

Implementation of

IHeader.locationMessage

media?

optional media: "imageMessage" | "locationMessage" | "documentMessage" | "videoMessage" | "productMessage" | "jpegThumbnail"
Defined in: WAProto/index.d.ts:6876

productMessage?

optional productMessage: null | IProductMessage
Defined in: WAProto/index.d.ts:6875

Implementation of

IHeader.productMessage

subtitle?

optional subtitle: null | string
Defined in: WAProto/index.d.ts:6868

Implementation of

IHeader.subtitle

title?

optional title: null | string
Defined in: WAProto/index.d.ts:6867

Implementation of

IHeader.title

videoMessage?

optional videoMessage: null | IVideoMessage
Defined in: WAProto/index.d.ts:6873

Implementation of

IHeader.videoMessage

Methods

create()

static create(properties?): Header
Defined in: WAProto/index.d.ts:6877

Parameters

properties?
IHeader

Returns

Header

decode()

static decode(r, l?): Header
Defined in: WAProto/index.d.ts:6879

Parameters

r
Uint8Array<ArrayBufferLike> | Reader
l?
number

Returns

Header

encode()

static encode(m, w?): Writer
Defined in: WAProto/index.d.ts:6878

Parameters

m
IHeader
w?
Writer

Returns

Writer

fromObject()

static fromObject(d): Header
Defined in: WAProto/index.d.ts:6880

Parameters

d

Returns

Header

getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string
Defined in: WAProto/index.d.ts:6883

Parameters

typeUrlPrefix?
string

Returns

string

toJSON()

toJSON(): object
Defined in: WAProto/index.d.ts:6882

Returns

object

toObject()

static toObject(m, o?): object
Defined in: WAProto/index.d.ts:6881

Parameters

m
Header
o?
IConversionOptions

Returns

object