mirror of
https://github.com/tommyxchow/frosty.git
synced 2025-08-23 10:11:00 +08:00

* dispose overlay timer * fix pip * add channel indicators to messages for shared chat sessions * add tooltip to chat message pfp * remove tooltip marign/padding * return null instead of throwing error * fix build error
34 lines
905 B
Dart
34 lines
905 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'shared_chat_session.g.dart';
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake, createToJson: false)
|
|
class SharedChatSession {
|
|
final String sessionId;
|
|
final String hostBroadcasterId;
|
|
final List<Participant> participants;
|
|
final String createdAt;
|
|
final String updatedAt;
|
|
|
|
SharedChatSession({
|
|
required this.sessionId,
|
|
required this.hostBroadcasterId,
|
|
required this.participants,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
});
|
|
|
|
factory SharedChatSession.fromJson(Map<String, dynamic> json) =>
|
|
_$SharedChatSessionFromJson(json);
|
|
}
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake, createToJson: false)
|
|
class Participant {
|
|
final String broadcasterId;
|
|
|
|
Participant({required this.broadcasterId});
|
|
|
|
factory Participant.fromJson(Map<String, dynamic> json) =>
|
|
_$ParticipantFromJson(json);
|
|
}
|