@iterable/react-native-sdk
Version:
Iterable SDK for React Native.
41 lines (37 loc) • 1.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.IterableHtmlInAppContent = void 0;
var _index = require("../../core/index.js");
var _index2 = require("../enums/index.js");
/**
* Information about the display of an HTML in-app message.
*/
class IterableHtmlInAppContent {
/** The type of in-app content. */
type = _index2.IterableInAppContentType.html;
/** The space around the in-app content. */
/** The raw HTML content of the in-app message. */
/**
* Constructs an `IterableHtmlInAppContent` instance with the provided `edgeInsets` and `html`.
*
* @param edgeInsets The space around the in-app content.
* @param html The raw HTML content of the in-app message.
*/
constructor(edgeInsets, html) {
this.edgeInsets = edgeInsets;
this.html = html;
}
/**
* Creates a new `IterableHtmlInAppContent` instance from a raw dictionary representation.
*
* @param dict The raw dictionary representation of the HTML in-app content.
* @returns A new `IterableHtmlInAppContent` instance with the values from the provided dictionary.
*/
static fromDict(dict) {
return new IterableHtmlInAppContent(_index.IterableEdgeInsets.fromDict(dict.edgeInsets), dict.html);
}
}
exports.IterableHtmlInAppContent = IterableHtmlInAppContent;
//# sourceMappingURL=IterableHtmlInAppContent.js.map