﻿#if UNITY_ANDROID

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

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

        public static void Add(string logEvent, string identifier)
        {
            wrapper.CallStatic("add", logEvent, identifier);
        }

        public static void Flush()
        {
            wrapper.CallStatic("flush");

        }

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

        public static string GetSDKVersions()
        {
            return wrapper.CallStatic<string>("getSDKVersions");
        }

        public static void SetExternalId(string externalId)
        {
            wrapper.CallStatic("setExternalId", externalId);
        }

        public static void AddGameLog(string logEvent, string identifier)
        {
            wrapper.CallStatic("addGameLog", logEvent, identifier);
        }

        public static void FlushGameLog()
        {
            wrapper.CallStatic("flushGameLog");

        }
    }
}

#endif