forked from Henry-Hiles/nexus
joining rooms from matrix uri or plaintext
This commit is contained in:
parent
cafdf43fd3
commit
82b6f2c647
5 changed files with 99 additions and 68 deletions
15
lib/models/requests/join_room_request.dart
Normal file
15
lib/models/requests/join_room_request.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
part "join_room_request.freezed.dart";
|
||||
part "join_room_request.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class JoinRoomRequest with _$JoinRoomRequest {
|
||||
const factory JoinRoomRequest({
|
||||
required String roomIdOrAlias,
|
||||
required IList<String> via,
|
||||
}) = _JoinRoomRequest;
|
||||
|
||||
factory JoinRoomRequest.fromJson(Map<String, Object?> json) =>
|
||||
_$JoinRoomRequestFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue