Skip to content

Commit 3a486d6

Browse files
authored
Merge branch 'evan/embedded-message-class' into evan/MOB-7936-iterable-embedded-message-class
2 parents 79e7225 + 2b2899c commit 3a486d6

6 files changed

Lines changed: 21 additions & 1 deletion

ios/RNIterableAPI/Serialization.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ extension IterableConfig {
9292
config.dataRegion = IterableDataRegion.US
9393
}
9494
}
95-
95+
96+
if let enableEmbeddedMessaging = dict["enableEmbeddedMesssaging"] as? Bool {
97+
config.enableEmbeddedMessaging = enableEmbeddedMessaging
98+
}
9699

97100
return config
98101
}

src/embedded/classes/IterableEmbeddedMessageDefaultAction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export class IterableEmbeddedMessageDefaultAction {
4646
* An interface defining the dictionary object containing the properties for the embedded message default action.
4747
*/
4848
export interface EmbeddedMessageDefaultActionDict {
49+
/** The type of the action */
4950
type: string;
51+
/** The url for the action when the type is `openUrl` */
5052
data?: string;
5153
}

src/embedded/classes/IterableEmbeddedMessageElements.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,18 @@ export class IterableEmbeddedMessageElements {
9191
* An interface defining the dictionary object containing the properties for the embedded message elements.
9292
*/
9393
export interface EmbeddedMessageElementsDict {
94+
/** The title of the embedded message */
9495
title?: string;
96+
/** The body of the embedded message */
9597
body?: string;
98+
/** The url of the embedded message image */
9699
mediaUrl?: string;
100+
/** The caption of the embedded message image */
97101
mediaUrlCaption?: string;
102+
/** The default action of the embedded message */
98103
defaultAction?: IterableEmbeddedMessageDefaultAction;
104+
/** The buttons of the embedded message */
99105
buttons?: IterableEmbeddedMessageElementsButton[];
106+
/** The text elements of the embedded message */
100107
text?: IterableEmbeddedMessageText[];
101108
}

src/embedded/classes/IterableEmbeddedMessageElementsButton.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export class IterableEmbeddedMessageElementsButton {
5555
* An interface defining the dictionary object containing the properties for the embedded message button.
5656
*/
5757
export interface EmbeddedMessageElementsButtonDict {
58+
/** The ID for the embedded message button */
5859
id: string;
60+
/** The title for the embedded message button */
5961
title?: string;
62+
/** The action for the embedded message button */
6063
action?: IterableEmbeddedMessageElementsButtonAction;
6164
}

src/embedded/classes/IterableEmbeddedMessageElementsButtonAction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export class IterableEmbeddedMessageElementsButtonAction {
4949
* An interface defining the dictionary object containing the properties for the embedded message button action.
5050
*/
5151
export interface EmbeddedMessageButtonActionDict {
52+
/** The type of the action */
5253
type: string;
54+
/** The data associated with the action */
5355
data?: string;
5456
}

src/embedded/classes/IterableEmbeddedMessageText.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export class IterableEmbeddedMessageText {
4242
* An interface defining the dictionary object containing the properties for an embedded message text.
4343
*/
4444
export interface EmbeddedMessageTextDict {
45+
/** The id of the text element */
4546
id: string;
47+
/** The text of the text element */
4648
text?: string;
49+
/** The type of the text element */
4750
type?: string;
4851
}

0 commit comments

Comments
 (0)