using Cute;

namespace Wizard;

public class BattlePassProduct
{
	public int Id { get; private set; }

	public int SeasonId { get; private set; }

	public string Name { get; private set; }

	public string Description { get; private set; }

	public int PriceInCrystal { get; private set; }

	public ShopExpirtyInfo ExpirtyInfo { get; private set; }

	public BattlePassProduct(int id, int seasonId, string name, int priceInCrystal, string description, ShopExpirtyInfo expirtyInfo)
	{
		Id = id;
		SeasonId = seasonId;
		Name = name;
		PriceInCrystal = priceInCrystal;
		Description = description;
		ExpirtyInfo = expirtyInfo;
	}

	public string GetPosterTexturePath(bool isFetch)
	{
		string path = $"{SeasonId}_{Id}_battle_pass_buy_confirm";
		return Toolbox.ResourcesManager.GetAssetTypePath(path, ResourcesManager.AssetLoadPathType.BattlePass, isFetch);
	}

	public string GetDetailPosterTexturePath(bool isFetch)
	{
		string path = $"{SeasonId}_{Id}_battle_pass_detail";
		return Toolbox.ResourcesManager.GetAssetTypePath(path, ResourcesManager.AssetLoadPathType.BattlePass, isFetch);
	}
}
