//
//  LNGiftResponse.swift
//  Gami
//
//  Created by OneeChan on 2026/3/24.
//

import Foundation
import AutoCodable

@AutoCodable
class LNGiftResource: Codable {
    var id: String = ""
    var name: String = ""
    var icon: String = ""
    var names: [String: String] = [:]
    
    var curName: String {
        names[LNAppConfig.shared.curLang.languageCode] ?? name
    }
}

@AutoCodable
class LNGiftResourceListResponse: Decodable {
    var list: [LNGiftResource] = []
    var next: String = ""
    var version: String = ""
}

@AutoCodable
class LNGiftItemVO: Decodable {
    var id: String = ""
    var value: Double = 0
    var resId: String = ""
}

@AutoCodable
class LNGiftListResponse: Decodable {
    var list: [LNGiftItemVO] = []
}

@AutoCodable
class LNSendGiftResponse: Decodable {
    var diamond: Double = 0
    var goldcoin: Double = 0
}
