Skip to content

Commit a292556

Browse files
authored
Merge branch 'evan/embedded-message-class' into evan/MOB-11551-iterable-embedded-message-elements-class
2 parents a3397a4 + d6b0a0a commit a292556

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

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/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
}

0 commit comments

Comments
 (0)