import { ChatMessage , Subject } from '../chat-message.model' ; export interface SynthesisVoice { voice : SpeechSynthesisVoice ; volume : number ; rate : number ; pitch : number ; } export class FetchConversations { static readonly type = '[ChatBox] FetchConversations' ; } export class CreateNewConversation { static readonly type = '[ChatBox] CreateNewConversation' ; } export class SwitchConversation { static readonly type = '[ChatBox] SwitchConversation' ; constructor ( public readonly payload ) { } } export class SaveConversation { static readonly type = '[ChatBox] SaveConversation' ; constructor ( public readonly payload ) { } } export class CloseConversation { static readonly type = '[ChatBox] CloseConversation' ; constructor ( public readonly payload ) { } } export class AddMessage { static readonly type = '[ChatBox] AddMessage' ; constructor ( public readonly payload ) { } } export class StartVoiceCommand { static readonly type = '[ChatBox] StartVoiceCommand' ; } export class SendMessage { static readonly type = '[ChatBox] SendMessage' ; constructor ( public readonly payload ) { } } export class SendTyping { static readonly type = '[ChatBox] Typing' ; constructor ( public readonly payload ) { } } export class MarkAsRead { static readonly type = '[ChatBox] MarkAsRead' ; }