using LitJson;

namespace Wizard.Scripts.Network.Task.Arena.TwoPick;

public class RetireTask : ArenaRetireTaskBase
{
	public class RetireTaskParam : BaseParam
	{
	}

	public RetireTask()
	{
		base.type = ApiType.Type.ArenaTwoPickRetire;
	}

	public override void SetParameter()
	{
		RetireTaskParam retireTaskParam = new RetireTaskParam();
		base.Params = retireTaskParam;
	}

	protected override int Parse()
	{
		int num = base.Parse();
		if (num != 1)
		{
			return num;
		}
		JsonData jsonData = base.ResponseData["data"];
		Wizard.Data.TwoPickInfo.SetEntryRewardList(jsonData["rewards"]);
		PlayerStaticData.UpdateHaveUserGoodsNumByJsonData(base.ResponseData["data"]["reward_list"]);
		return num;
	}
}
