148 lines
4.2 KiB
C#
148 lines
4.2 KiB
C#
using UnityEngine;
|
|
using System;
|
|
|
|
namespace Tech3C
|
|
{
|
|
/// <summary>
|
|
/// Bridge class for iOS platform to communicate with Tech3C native SDK
|
|
/// Note: iOS implementation requires native framework. This is a placeholder.
|
|
/// </summary>
|
|
public class Tech3CiOSBridge : ITech3CNativeBridge
|
|
{
|
|
private bool initialized = false;
|
|
|
|
/// <summary>
|
|
/// Initialize the Tech3C SDK
|
|
/// </summary>
|
|
public void Initialize(string clientId, string clientSecret, Tech3CConfig config)
|
|
{
|
|
Debug.LogWarning("[Tech3C] iOS platform is not yet supported. Please provide the native iOS framework.");
|
|
initialized = true;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Show authentication screen
|
|
/// </summary>
|
|
public void ShowAuth(IAuthCallback callback)
|
|
{
|
|
Debug.LogWarning("[Tech3C] ShowAuth is not implemented for iOS platform");
|
|
callback?.OnAuthError(-1, "iOS platform not supported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Logout current user
|
|
/// </summary>
|
|
public void Logout(ILogoutCallback callback)
|
|
{
|
|
Debug.LogWarning("[Tech3C] Logout is not implemented for iOS platform");
|
|
callback?.OnLogoutError(-1, "iOS platform not supported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get user information
|
|
/// </summary>
|
|
public void GetUserInfo(IUserInfoCallback callback)
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetUserInfo is not implemented for iOS platform");
|
|
callback?.OnUserInfoError(-1, "iOS platform not supported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Check if user is logged in
|
|
/// </summary>
|
|
public bool IsLoggedIn()
|
|
{
|
|
Debug.LogWarning("[Tech3C] IsLoggedIn is not implemented for iOS platform");
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get access token
|
|
/// </summary>
|
|
public string GetAccessToken()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetAccessToken is not implemented for iOS platform");
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get refresh token
|
|
/// </summary>
|
|
public string GetRefreshToken()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetRefreshToken is not implemented for iOS platform");
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get user ID
|
|
/// </summary>
|
|
public string GetUserId()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetUserId is not implemented for iOS platform");
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get device ID
|
|
/// </summary>
|
|
public string GetDeviceId()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetDeviceId is not implemented for iOS platform");
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get login time
|
|
/// </summary>
|
|
public long GetLoginTime()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetLoginTime is not implemented for iOS platform");
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get token expiry time
|
|
/// </summary>
|
|
public long GetTokenExpiry()
|
|
{
|
|
Debug.LogWarning("[Tech3C] GetTokenExpiry is not implemented for iOS platform");
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Check if token is expired
|
|
/// </summary>
|
|
public bool IsTokenExpired()
|
|
{
|
|
Debug.LogWarning("[Tech3C] IsTokenExpired is not implemented for iOS platform");
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set language
|
|
/// </summary>
|
|
public void SetLanguage(Language language)
|
|
{
|
|
Debug.LogWarning("[Tech3C] SetLanguage is not implemented for iOS platform");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set debug mode
|
|
/// </summary>
|
|
public void SetDebug(bool debug)
|
|
{
|
|
Debug.LogWarning("[Tech3C] SetDebug is not implemented for iOS platform");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Cleanup resources
|
|
/// </summary>
|
|
public void Cleanup()
|
|
{
|
|
Debug.Log("[Tech3C] iOS bridge cleanup completed");
|
|
initialized = false;
|
|
}
|
|
}
|
|
}
|