Manual Reference Source Test
import NotificationModel from 'clinical6/src/models/Notification.js'
public class | source

NotificationModel

Direct Subclass:

Notification

Model representing a notification.

Constructor Summary

Public Constructor
public

constructor(response: Object)

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public

Public Constructors

public constructor(response: Object) source

Params:

NameTypeAttributeDescription
response Object

JSON formatted response of a Notification

response.id String

The id value of the notification

response.type String

The type of user (mobile or user) associated with the notification

response.action String

The action that occurs when the notification transpires

response.actionObject Object

Object with possible actions for notification

response.channels Object
  • optional

Array of channels associated with notification

response.message String

The notification message

response.status String

The notification status ('pending', 'completed', 'read')

response.title String

The notification title

response.opts Object

Object for interpolating message string

response.createdAt String

The creation date of the notification

response.updatedAt String

Last time the notification was updated

Public Members

public action: String source

public actionObject: Object source

public archivedAt: String source

public channels: String source

public createdAt: String source

public id: Number source

public message: String source

public opts: Object source

public status: String source

public title: String source

public updatedAt: String source