forked from Nexus/nexus
Rips out the old auth method, adds OAuth support. Fixes #51. Tested Platforms: - [x] Linux - [x] Flatpak - [x] Native (Nix) - [x] Android - [ ] Windows - [ ] MacOS Reviewed-on: Nexus/nexus#53
15 lines
441 B
Dart
15 lines
441 B
Dart
import "package:freezed_annotation/freezed_annotation.dart";
|
|
part "get_event.freezed.dart";
|
|
part "get_event.g.dart";
|
|
|
|
@freezed
|
|
abstract class GetEventRequest with _$GetEventRequest {
|
|
const factory GetEventRequest({
|
|
required String roomId,
|
|
required String eventId,
|
|
@Default(false) bool unredact,
|
|
}) = _GetEventRequest;
|
|
|
|
factory GetEventRequest.fromJson(Map<String, Object?> json) =>
|
|
_$GetEventRequestFromJson(json);
|
|
}
|