//
//  EnergyRefillTier.swift
//  lichunWebsocket
//
//  Energy refill tier model for in-app purchases
//

import Foundation

struct EnergyRefillTier: Identifiable, Codable {
    let id = UUID()
    let type: String // "small", "medium", "full", "unlimited_24h"
    let energy: Int
    let diamonds: Int

    var displayName: String {
        switch type {
        case "small": return "Small Refill"
        case "medium": return "Medium Refill"
        case "full": return "Full Refill"
        case "unlimited_24h": return "Unlimited 24h"
        default: return type
        }
    }

    var description: String {
        switch type {
        case "unlimited_24h":
            return "Unlimited energy for 24 hours"
        default:
            return "+\(energy) energy"
        }
    }

    var icon: String {
        switch type {
        case "small": return "bolt.fill"
        case "medium": return "bolt.2.fill"
        case "full": return "bolt.3.fill"
        case "unlimited_24h": return "infinity"
        default: return "bolt.fill"
        }
    }
}
