mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 11:27:50 +08:00
Refactor DashBot
This commit is contained in:
21
lib/dashbot/models/chat_response.dart
Normal file
21
lib/dashbot/models/chat_response.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import '../constants.dart';
|
||||
|
||||
class ChatResponse {
|
||||
final String content;
|
||||
final ChatMessageType? messageType;
|
||||
|
||||
const ChatResponse({
|
||||
required this.content,
|
||||
this.messageType,
|
||||
});
|
||||
|
||||
ChatResponse copyWith({
|
||||
String? content,
|
||||
ChatMessageType? messageType,
|
||||
}) {
|
||||
return ChatResponse(
|
||||
content: content ?? this.content,
|
||||
messageType: messageType ?? this.messageType,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user