using Wizard.Scripts.Network.Data.TaskData.Arena;

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

public class TopTask : ArenaTopTaskBase
{
	public class ArenaTwoPickTopTaskParam : BaseParam
	{
		public int mode;
	}

	public TopTask()
	{
		base.type = ApiType.Type.ArenaTwoPickTop;
	}

	public override void SetParameter()
	{
		ArenaTwoPickTopTaskParam arenaTwoPickTopTaskParam = new ArenaTwoPickTopTaskParam();
		base.Params = arenaTwoPickTopTaskParam;
	}

	protected override int Parse()
	{
		int num = base.Parse();
		if (num != 1)
		{
			return num;
		}
		Wizard.Data.TwoPickInfo = new TwoPickInfo(base.ResponseData["data"], base.ResponseData["data_headers"]);
		return num;
	}
}
