Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Message

import type { Message } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";

A message that will be displayed with a Valuable

interface Message {
body?: string;
displayInterval?: TimeInterval;
header?: string;
id?: string;
kind?: string;
localizedBody?: LocalizedString;
localizedHeader?: LocalizedString;
messageType?:
| "MESSAGE_TYPE_UNSPECIFIED"
| "TEXT"
| "text"
| "EXPIRATION_NOTIFICATION"
| "expirationNotification"
| "TEXT_AND_NOTIFY";
}

§Properties

§
body?: string
[src]

The message body.

§
displayInterval?: TimeInterval
[src]

The period of time that the message will be displayed to users. You can define both a startTime and endTime for each message. A message is displayed immediately after a Wallet Object is inserted unless a startTime is set. The message will appear in a list of messages indefinitely if endTime is not provided.

§
id?: string
[src]

The ID associated with a message. This field is here to enable ease of management of messages. Notice ID values could possibly duplicate across multiple messages in the same class/instance, and care must be taken to select a reasonable ID for each message.

§
kind?: string
[src]

Identifies what kind of resource this is. Value: the fixed string "walletobjects#walletObjectMessage".

§
localizedBody?: LocalizedString
[src]

Translated strings for the message body.

§
localizedHeader?: LocalizedString
[src]

Translated strings for the message header.

§
messageType?: "MESSAGE_TYPE_UNSPECIFIED" | "TEXT" | "text" | "EXPIRATION_NOTIFICATION" | "expirationNotification" | "TEXT_AND_NOTIFY"
[src]

The message type.