react-native-moengage-inbox
Version:
Inbox Module for the MoEngage Platform
30 lines (27 loc) • 977 B
text/typescript
import MoETextContent from "./MoETextContent";
import MoEMedia from "./MoEMedia"
import MoEAction from "./MoEAction"
export default class MoEInboxMessage {
id?: number | undefined;
campaignId: string;
text: MoETextContent;
isClicked: boolean;
media?: MoEMedia | undefined;
action?: Array<MoEAction> | undefined;
tag?: string | undefined;
receivedTime: string;
expiry: string;
payload: Map<String, Object>;
constructor(id: number | undefined, campaignId: string, textContent: MoETextContent, isClicked: boolean, media: MoEMedia | undefined, action: Array<MoEAction> | undefined, tag: string | undefined, receivedTime: string, expiry: string, payload: Map<String, Object>) {
this.id = id;
this.campaignId = campaignId;
this.text = textContent;
this.isClicked = isClicked;
this.media = media;
this.action = action;
this.tag = tag;
this.receivedTime = receivedTime;
this.expiry = expiry;
this.payload = payload
}
}