allow sending emoji/stickers from emote packs
This commit is contained in:
parent
868023a4a1
commit
3754bc2feb
1 changed files with 701 additions and 74 deletions
29
lib/models/requests/get_specific_room_state.dart
Normal file
29
lib/models/requests/get_specific_room_state.dart
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "get_specific_room_state.freezed.dart";
|
||||
part "get_specific_room_state.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const GetSpecificRoomStateRequest({
|
||||
required final IList<RoomStateKey> keys,
|
||||
}) with _$GetSpecificRoomStateRequest {
|
||||
Map<String, Object?> toJson() => _$GetSpecificRoomStateRequestToJson(this);
|
||||
|
||||
factory GetSpecificRoomStateRequest.fromJson(Map<String, Object?> json) =>
|
||||
_$GetSpecificRoomStateRequestFromJson(json);
|
||||
}
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const RoomStateKey({
|
||||
required final String roomId,
|
||||
required final String type,
|
||||
required final String stateKey,
|
||||
}) with _$RoomStateKey {
|
||||
Map<String, Object?> toJson() => _$RoomStateKeyToJson(this);
|
||||
|
||||
factory RoomStateKey.fromJson(Map<String, Object?> json) =>
|
||||
_$RoomStateKeyFromJson(json);
|
||||
}
|
||||
Loading…
Reference in a new issue