# Conflicts: # Assets/Resources/UI/Font/HanWangZonYi.ttf.meta # Assets/Resources/UI/language.json # Assets/Scenes/Login.unity # Assets/Scripts/Apis/Models/MapRoute.cs # Assets/Scripts/App.cs # Assets/Scripts/ConfigHelper.cs # Assets/Scripts/Scenes/Ride/Scripts/PlayerController.cs # Assets/Scripts/UIManager.cs # Assets/Scripts/Utils/Utils.cs
102 lines
2.8 KiB
C#
102 lines
2.8 KiB
C#
using Assets.Scripts.Apis;
|
|
using Assets.Scripts.Apis.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.Scripts
|
|
{
|
|
public static class ConfigHelper
|
|
{
|
|
public static string Host = App.Host;
|
|
|
|
public static string AppVersion = App.AppVersion;
|
|
public static UserApi _userApi;
|
|
public static UserApi userApi
|
|
{
|
|
get
|
|
{
|
|
if (_userApi == null) _userApi = new UserApi();
|
|
return _userApi;
|
|
}
|
|
}
|
|
private static ActivityApi _activityApi;
|
|
public static ActivityApi activityApi
|
|
{
|
|
get
|
|
{
|
|
if (_activityApi == null) _activityApi = new ActivityApi();
|
|
return _activityApi;
|
|
}
|
|
}
|
|
private static MapApi _mapApi;
|
|
public static MapApi mapApi
|
|
{
|
|
get
|
|
{
|
|
if (_mapApi == null) _mapApi = new MapApi();
|
|
return _mapApi;
|
|
}
|
|
}
|
|
private static MapInterruptRecordApi _mapInterruptRecordApi;
|
|
public static MapInterruptRecordApi mapInterruptRecordApi
|
|
{
|
|
get
|
|
{
|
|
if (_mapInterruptRecordApi == null) _mapInterruptRecordApi = new MapInterruptRecordApi();
|
|
return _mapInterruptRecordApi;
|
|
}
|
|
}
|
|
|
|
public static ThirdPartApi _thirdPartApi;
|
|
public static ThirdPartApi thirdPartApi
|
|
{
|
|
get
|
|
{
|
|
if (_thirdPartApi == null) _thirdPartApi = new ThirdPartApi();
|
|
return _thirdPartApi;
|
|
}
|
|
}
|
|
private static MapCompetitionApi _mapCompetitionApi;
|
|
internal static MapCompetitionApi mapCompetitionApi
|
|
{
|
|
get
|
|
{
|
|
if (_mapCompetitionApi == null) _mapCompetitionApi = new MapCompetitionApi();
|
|
return _mapCompetitionApi;
|
|
}
|
|
}
|
|
private static RowerApi _rowerApi;
|
|
internal static RowerApi rowerApi
|
|
{
|
|
get
|
|
{
|
|
if (_rowerApi == null) _rowerApi = new RowerApi();
|
|
return _rowerApi;
|
|
}
|
|
}
|
|
|
|
private static MailApi _mailApi;
|
|
internal static MailApi mailApi
|
|
{
|
|
get
|
|
{
|
|
if (_mailApi == null) _mailApi = new MailApi();
|
|
return _mailApi;
|
|
}
|
|
}
|
|
private static GameRoomApi _gameRoomApi;
|
|
public static GameRoomApi GameRoomApi
|
|
{
|
|
get
|
|
{
|
|
if (_gameRoomApi == null) _gameRoomApi = new GameRoomApi();
|
|
return _gameRoomApi;
|
|
}
|
|
}
|
|
}
|
|
}
|