ModelServerCommandRemoteNotificationSchedule class

ModelServerCommandBase for remote PUSH notification to time.

Enter the text for the notification in the title and text fields, and specify a token or topic string for the notification in the tokens and topic fields.

If you use this in firestore, please specify the fields _time and _done in CollectionID:schedule to create the index.

timeにリモートPUSH通知を行うためのModelServerCommandBaseです。

titletextに通知用の文言を入力し、tokenstopicに通知用のトークンやトピックの文字列を指定します。

firestoreでこちらを利用する場合CollectionID:schedule_time_doneのフィールドを指定してインデックスを作成してください。

Inheritance
  • Object
  • ModelFieldValue<String>
  • ModelServerCommandBase
  • ModelServerCommandRemoteNotificationSchedule

Constructors

ModelServerCommandRemoteNotificationSchedule({required ModelTimestamp time, required String title, required String text, required NotificationTargetQuery target, String? channelId, DynamicMap? data, Uri? link, int? badgeCount, String? sound})
ModelServerCommandBase for remote PUSH notification to time.
const
factory
ModelServerCommandRemoteNotificationSchedule.fromJson(DynamicMap json)
Convert from json map to ModelServerCommandRemoteNotificationSchedule.
factory
ModelServerCommandRemoteNotificationSchedule.fromServer({DynamicMap publicParameters = const {}, DynamicMap privateParameters = const {}})
Used to disguise the retrieval of data from the server.
const

Properties

badgeCount int?
Number of badges to display in PUSH notifications.
no setter
channelId String?
The channel ID of the notification.
no setter
data → DynamicMap?
The data of the notification.
no setter
hashCode int
The hash code for this object.
no setterinherited
A link to transition from the notification.
no setter
privateParameters → DynamicMap
Private parameters for the command.
no setteroverride
publicParameters → DynamicMap
Public parameters for the command.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
Sound of PUSH notifications.
no setter
target NotificationTargetQuery
Set up notification destinations.
no setter
text String
The body of the notification.
no setter
time → ModelTimestamp
Specify the date and time to copy.
no setter
title String
The title of the notification.
no setter
value String
Actual value.
no setterinherited

Methods

compareTo(ModelServerCommandBase other) int
Compares this object to another object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → DynamicMap
Methods for Json serialization.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

command → const String
Command Name.