import { ConversationEvent } from "./ConversationEvent"; export class RepliedToConversationEvent extends ConversationEvent { public static eventName = "conversations.RepliedToConversationEvent"; public static eventVersion = 0; readonly repliedAt: string; readonly replierId:string; readonly messageContent: { text: string }; // TODO type for message in events readonly platform:string; readonly channelId:string; readonly channelUserId:string; constructor({ tenantId, conversationId, repliedAt, messageContent, replierId, platform, channelId, channelUserId }: { tenantId: string; conversationId: string; repliedAt: string; messageContent: { text: string }; replierId:string; platform:string; channelId:string; channelUserId:string; }) { super({ eventName: RepliedToConversationEvent.eventName, eventVersion: RepliedToConversationEvent.eventVersion, tenantId, conversationId, }); this.repliedAt = repliedAt; this.replierId = replierId; this.messageContent = messageContent; this.platform = platform; this.channelId = channelId; this.channelUserId = channelUserId; } }