//
//  RoomActions.swift
//  TUIRoomKit
//
//  Created by CY zhao on 2024/7/2.
//

import Foundation
import RTCRoomEngine

enum RoomActions {
    static let key = "action.room"
    
    static let joinConference = ActionTemplate(id: key.appending(".joinConference"), payloadType: (String).self)
    
    static let updateRoomState = ActionTemplate(id: key.appending(".updateRoomState"), payloadType: RoomInfo.self)
    static let clearRoomState = ActionTemplate(id: key.appending(".clearRoomState"))
    static let onJoinSuccess = ActionTemplate(id: key.appending(".onJoinSuccess"))
}

enum RoomResponseActions {
    static let key = "action.room.response"
    static let onExitSuccess = ActionTemplate(id: key.appending("onExitSuccess"))
}
