using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AnyThinkAds.Api;

namespace AnyThinkAds.Android
{
    public class ATAreaListener : AndroidJavaProxy
    {
        ATGetAreaListener mListener;
        public ATAreaListener(ATGetAreaListener listener): base("com.thinkup.unitybridge.sdkinit.AreaCallbackListener")
        {
            mListener = listener;
        }


        public void onResultCallback(string area)
        {
            if (mListener != null)
            {
                mListener.onArea(area);   
            }
        }

        public void onErrorCallback(string s)
        {
            if (mListener != null)
            {
               mListener.onError(s);
            }
        }
    }
}
