﻿#if UNITY_ANDROID

namespace Stove.StoveSDK
{
    using System.Collections.Generic;
    using UnityEngine;

    public class PushInterface
    {
        static AndroidJavaObject wrapper = new AndroidJavaObject("com.stove.unity.PushWrapper");

        public static void FetchToken(string identifier)
        {
            wrapper.CallStatic("fetchToken", identifier);
        }

        public static void RegisterPush(string token, string identifier)
        {
            wrapper.CallStatic("registerPush", token, identifier);
        }

        public static void FetchPushSettings(string identifier)
        {
            wrapper.CallStatic("fetchPushSettings", identifier);
        }

        public static void UpdatePushSettings(string pushSettings, string identifier)
        {
            wrapper.CallStatic("updatePushSettings", pushSettings, identifier);
        }

        public static void SetMessageDelegate(string identifier)
        {
            wrapper.CallStatic("setMessageDelegate", identifier);
        }

        public static string GetVersion()
        {
            return wrapper.CallStatic<string>("getVersion");
        }
    }
}

#endif