﻿#if UNITY_IOS
namespace Stove.StoveSDK
{
    using System.Runtime.InteropServices;

    public class LogInterface
    {
        [DllImport("__Internal")]
        private static extern void stove_log_add(string logEvent, string identifier);
        internal static void Add(string logEvent, string identifier)
        {
            stove_log_add(logEvent, identifier);
        }

        [DllImport("__Internal")]
        private static extern void stove_log_flush();
        internal static void Flush()
        {
            stove_log_flush();
        }

        [DllImport("__Internal")]
        private static extern string stove_log_version();
        internal static string GetVersion()
        {
            return stove_log_version();
        }

        [DllImport("__Internal")]
        private static extern string stove_log_sdk_versions();
        internal static string GetSDKVersions()
        {
            return stove_log_sdk_versions();

        }

        [DllImport("__Internal")]
        private static extern void stove_log_set_external_id(string externalId);
        internal static void SetExternalId(string externalId)
        {
            stove_log_set_external_id(externalId);
        }

        [DllImport("__Internal")]
        private static extern void stove_game_log_add(string logEvent, string identifier);
        internal static void AddGameLog(string logEvent, string identifier)
        {
            stove_game_log_add(logEvent, identifier);
        }

        [DllImport("__Internal")]
        private static extern void stove_game_log_flush();
        internal static void FlushGameLog()
        {
            stove_game_log_flush();
        }
    }
}

#endif