import { MessageRole, ContentType, SendStatus } from '@/views/chat/types/index.d.ts' import BaseMessage from './BaseMessage' export default class TextMessage extends BaseMessage { content: string constructor( id: string, avatar: string, nickname: string, createTime: number, isRead: boolean, content: string, role: MessageRole, sendStatus: SendStatus, conversationId: string, receiverId: number, conversationType: number, conversationUserId: number ) { super( id, avatar, nickname, createTime, isRead, role, sendStatus, ContentType.TEXT, conversationId, receiverId, conversationType, conversationUserId ) this.content = content } }