WIP still, tuning up auth and room wildcard with middleware
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'room.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateRoomRequest {
|
||||
final bool success;
|
||||
CreateRoomRequest({required this.success});
|
||||
factory CreateRoomRequest.fromJson(Map<String, dynamic> json) => _$CreateRoomRequestFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$CreateRoomRequestToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateRoomResponse {
|
||||
final bool success;
|
||||
final String? roomCode;
|
||||
final String? error;
|
||||
|
||||
CreateRoomResponse({required this.success, required this.roomCode, this.error});
|
||||
|
||||
factory CreateRoomResponse.fromJson(Map<String, dynamic> json) => _$CreateRoomResponseFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$CreateRoomResponseToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user