PlayRoomEntity class
TODO: プレイ終了後に削除してもいいモノなので、DocRef で持ってるやつは Value で十分じゃないかを検討. TODO: announcement はクライアントサイド完結想定だが、必要になったら追加.
- Implemented types
- Annotations
Constructors
-
PlayRoomEntity({@required @DocumentReferenceConverter() DocumentReference host, @required @DocumentReferenceListConverter() List<
DocumentReference> humans, @required @DocumentReferenceConverter() DocumentReference lifeRoad, @required String currentTurnHumanId, @TimestampConverter() DateTime createdAt, @TimestampConverter() DateTime updatedAt, @Default('') String title}) -
factory
-
PlayRoomEntity.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $PlayRoomEntityCopyWith<
PlayRoomEntity> -
read-only, inherited
- createdAt → DateTime
-
@TimestampConverter(), read-only, inherited
- currentTurnHumanId → String
-
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- host → DocumentReference
-
@DocumentReferenceConverter(), read-only, inherited
-
humanIds
→ List<
String> -
humans の document ID List
read-only
-
humans
→ List<
DocumentReference> -
@DocumentReferenceListConverter(), read-only, inherited
- lifeRoad → DocumentReference
-
@DocumentReferenceConverter(), read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- title → String
-
read-only, inherited
- updatedAt → DateTime
-
@TimestampConverter(), read-only, inherited
Methods
-
encode(
) → Map< String, dynamic> -
Store に保存する形式へのエンコード
override
-
fetchHost(
Store store) → Future< Doc< UserEntity> > - host の UserEntity を取得する
-
fetchHumans(
Store store) → Future< List< Doc< >UserEntity> > -
fetchLifeRoad(
Store store) → Future< Doc< LifeRoadEntity> > -
@late
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Methods
-
decode(
Store store, DocumentSnapshot snapshot) → Doc< PlayRoomEntity>