Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "notifications"

Index

Functions

acceptInvite

  • acceptInvite(id_: string): Promise<string>
  • Accept an Invite included in a Notification.

    Textile.notifications.acceptInvite(id);

    Parameters

    • id_: string

    Returns Promise<string>

countUnread

  • countUnread(): Promise<number>
  • Get count of unread Notifications.

    Textile.notifications.countUnread();

    Returns Promise<number>

ignoreInvite

  • ignoreInvite(id_: string): Promise<string>
  • Ignore an Invite included in a Notification.

    Textile.notifications.ignoreInvite(id);

    Parameters

    • id_: string

    Returns Promise<string>

list

  • list(offset: string, limit: number): Promise<INotificationList>
  • List all Notifications.

    Textile.notifications.list(offset, limit);

    Parameters

    • offset: string
    • limit: number

    Returns Promise<INotificationList>

read

  • read(id_: string): Promise<void>
  • Mark a Notification as read by ID.

    Textile.notifications.read(id);

    Parameters

    • id_: string

    Returns Promise<void>

readAll

  • readAll(): Promise<void>
  • Mark all Notifications as read.

    Textile.notifications.readAll();

    Returns Promise<void>