using LitJson;

namespace Wizard;

public class RedEtherCampaignRewardData
{
	public UserGoods.Type UserGoodsType { get; private set; }

	public int ItemCount { get; private set; }

	public bool IsCleared { get; private set; }

	public string MissionText { get; private set; }

	public RedEtherCampaignRewardData(JsonData json, bool isCleared)
	{
		MissionText = json["mission_name"].ToString();
		IsCleared = isCleared;
		JsonData jsonData = json["reward_list"][0];
		ItemCount = jsonData["reward_number"].ToInt();
		UserGoodsType = (UserGoods.Type)jsonData["reward_type"].ToInt();
	}

	public RedEtherCampaignRewardData(UserGoods.Type type, int count, bool cleared, string missionText)
	{
		UserGoodsType = type;
		ItemCount = count;
		IsCleared = cleared;
		MissionText = missionText;
	}
}
