@trycourier/courier-react-native
Version:
Inbox, Push Notifications, and Preferences for React Native
35 lines • 1.37 kB
TypeScript
import { InboxAction } from "./InboxAction";
export declare class InboxMessage {
readonly messageId: string;
readonly title?: string | null;
readonly body?: string | null;
readonly preview?: string | null;
readonly created?: string | null;
readonly actions?: InboxAction[] | null;
readonly data?: {
[key: string]: any;
} | null;
readonly read?: boolean | null;
readonly opened?: boolean | null;
readonly archived?: boolean | null;
readonly subtitle?: string | null;
readonly time?: string;
readonly trackingIds?: {
[key: string]: any;
} | null;
constructor(messageId: string, title?: string | null, body?: string | null, preview?: string | null, created?: string | null, actions?: InboxAction[] | null, data?: {
[key: string]: any;
} | null, read?: boolean | null, opened?: boolean | null, archived?: boolean | null, subtitle?: string | null, time?: string, trackingIds?: {
[key: string]: any;
} | null);
get isRead(): boolean;
get isOpened(): boolean;
get isArchived(): boolean;
static fromJson(jsonString: string): InboxMessage;
markAsRead(): Promise<void>;
markAsUnread(): Promise<void>;
markAsArchived(): Promise<void>;
markAsOpened(): Promise<void>;
markAsClicked(): Promise<void>;
}
//# sourceMappingURL=InboxMessage.d.ts.map