UNPKG

@iterable/react-native-sdk

Version:
38 lines (33 loc) 1.09 kB
"use strict"; /** * Metadata for a message. */ export class IterableInboxMetadata { /** The message title */ /** The message subtitle (this is sometimes a preview of the body text) */ /** The icon associated with the message */ /** * Constructs an instance of IterableInboxMetadata. * * @param title - The title of the inbox item. * @param subtitle - The subtitle of the inbox item. * @param icon - The icon associated with the inbox item. */ constructor(title, subtitle, icon) { this.title = title; this.subtitle = subtitle; this.icon = icon; } /** * Creates an instance of `IterableInboxMetadata` from a dictionary object. * * @param dict - The dictionary object containing the metadata properties. * This corresponds to the properties in {@link IterableInboxMetadata}. * * @returns A new instance of `IterableInboxMetadata` with the provided properties. */ static fromDict(dict) { return new IterableInboxMetadata(dict.title, dict.subtitle, dict.icon); } } //# sourceMappingURL=IterableInboxMetadata.js.map