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

namespace Wizard;

public class SealedBattleFinishTask : FinishTaskBase
{
	public SealedBattleFinishTask()
	{
		base.type = ApiType.Type.ArenaSealedBattleFinish;
		Data.ArenaBattleFinish = null;
	}

	protected override int Parse()
	{
		int num = base.Parse();
		if (IsEffectiveErrorCode(num))
		{
			return num;
		}
		Finish finish = (Data.ArenaBattleFinish = new Finish());
		if (!IsResponseDataExist(base.ResponseData))
		{
			return num;
		}
		new BattleFinishResponsProcessing().Processing(base.ResponseData, finish.data);
		return num;
	}
}
