ModelToken class
Class for storing multiple tokens.
Can be used for token management of PUSH notifications, etc.
複数トークンを保存するためのクラス。
PUSH通知のトークン管理等に利用可能です。
- Inheritance
-
- Object
- ModelFieldValue<
List< String> > - ModelToken
- Implemented types
- Annotations
Constructors
-
ModelToken(List<
String> tokenList) -
Class for storing multiple tokens.
constfactory
- ModelToken.fromJson(DynamicMap json)
-
Convert from
json
map to ModelToken.factory -
ModelToken.fromServer(List<
String> tokenList) -
Used to disguise the retrieval of data from the server.
constfactory
Properties
Methods
-
add(
String token) → void -
Register a new
token
. -
clear(
) → void - Delete all tokens.
-
compareTo(
ModelToken other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String token) → void -
Delete
token
. -
toJson(
) → DynamicMap -
Methods for Json serialization.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- kListKey → const String
- Key to save the list.
- kSourceKey → const String
- Key to store the data source.
- typeString → const String
- Type key.