create

open fun create(title: String, body: String): NotificationMessage

Factory method to create a new instance of NotificationMessage.

Return

a new instance of NotificationMessage.

Parameters

title

the title of the notification.

body

the body of the message.