add most models needed for invites
This commit is contained in:
parent
f741a6790d
commit
0df2d8f78b
7 changed files with 61 additions and 4 deletions
17
lib/models/requests/get_room_summary.dart
Normal file
17
lib/models/requests/get_room_summary.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "get_room_summary.freezed.dart";
|
||||
part "get_room_summary.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const GetRoomSummary({
|
||||
required final String roomIdOrAlias,
|
||||
final IList<String> via = const IList.empty(),
|
||||
}) with _$GetRoomSummary {
|
||||
Map<String, Object?> toJson() => _$GetRoomSummaryToJson(this);
|
||||
|
||||
factory GetRoomSummary.fromJson(Map<String, Object?> json) =>
|
||||
_$GetRoomSummaryFromJson(json);
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ part "join_room.g.dart";
|
|||
class const JoinRoomRequest({
|
||||
required final String roomIdOrAlias,
|
||||
final IList<String> via = const IList.empty(),
|
||||
final bool fromInvite = false,
|
||||
}) with _$JoinRoomRequest {
|
||||
Map<String, Object?> toJson() => _$JoinRoomRequestToJson(this);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue