@@ -2,15 +2,36 @@ import { IterableEmbeddedMessageDefaultAction } from './IterableEmbeddedMessageD
22import { IterableEmbeddedMessageElementsButton } from './IterableEmbeddedMessageElementsButton';
33import { IterableEmbeddedMessageText } from './IterableEmbeddedMessageText';
44
5+ /**
6+ * IterableEmbeddedMessageElements represents the elements of an embedded message.
7+ */
58export class IterableEmbeddedMessageElements {
9+ /** The title of the embedded message */
610 readonly title?: string;
11+ /** The body of the embedded message */
712 readonly body?: string;
13+ /** The url of the embedded message image */
814 readonly mediaUrl?: string;
15+ /** The caption of the embedded message image */
916 readonly mediaUrlCaption?: string;
17+ /** The default action of the embedded message */
1018 readonly defaultAction?: IterableEmbeddedMessageDefaultAction;
19+ /** The buttons of the embedded message */
1120 readonly buttons?: IterableEmbeddedMessageElementsButton[];
21+ /** The text elements of the embedded message */
1222 readonly text?: IterableEmbeddedMessageText[];
1323
24+ /**
25+ * Creates an instance of `IterableEmbeddedMessageElements`.
26+ *
27+ * @param title - The title of the embedded message.
28+ * @param body - The body of the embedded message.
29+ * @param mediaUrl - The url of the embedded message image.
30+ * @param mediaUrlCaption - The caption of the embedded message image.
31+ * @param defaultAction - The default action of the embedded message.
32+ * @param buttons - The buttons of the embedded message.
33+ * @param text - The text elements of the embedded message.
34+ */
1435 constructor(
1536 title?: string,
1637 body?: string,
@@ -29,6 +50,12 @@ export class IterableEmbeddedMessageElements {
2950 this.text = text;
3051 }
3152
53+ /**
54+ * Creates an instance of `IterableEmbeddedMessageElements` from a dictionary object.
55+ *
56+ * @param dict - The dictionary object containing the properties to initialize the `IterableEmbeddedMessageElements` instance.
57+ * @returns A new instance of `IterableEmbeddedMessageElements` initialized with the provided dictionary properties.
58+ */
3259 static fromDict(
3360 dict: Partial<EmbeddedMessageElementsDict>
3461 ): IterableEmbeddedMessageElements {
@@ -60,6 +87,9 @@ export class IterableEmbeddedMessageElements {
6087 }
6188}
6289
90+ /**
91+ * An interface defining the dictionary object containing the properties for the embedded message elements.
92+ */
6393export interface EmbeddedMessageElementsDict {
6494 title?: string;
6595 body?: string;
0 commit comments