//
//  LNOrderRoomDefs.swift
//  Gami
//
//  Created by OneeChan on 2026/4/3.
//

import Foundation

enum LNOrderRoomSeatNum: Int, CaseIterable, Comparable {
    case none = -1
    case host = 0
    case guest
    case mic1
    case mic2
    case mic3
    case mic4
    case mic5
    case mic6
    case mic7
    case mic8
    
    static func < (lhs: LNOrderRoomSeatNum, rhs: LNOrderRoomSeatNum) -> Bool {
        lhs.rawValue < rhs.rawValue
    }
    
    var title: String {
        if case .host = self {
            .init(key: "A00328")
        } else if case .guest = self {
            .init(key: "A00329")
        } else {
            .init(key: "A00326", rawValue - 1)
        }
    }
    
    var giftHeaderTitle: String {
        if case .host = self {
            .init(key: "A00328")
        } else if case .guest = self {
            .init(key: "A00329")
        } else {
            "Mic \(rawValue - 1)"
        }
    }
}


enum LNOrderRoomApplyingSeatType: Int, Decodable {
    case none
    case guest
    case playmate
}
