93 lines
2.5 KiB
C#
93 lines
2.5 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 GameRoomApi _gameRoomApi;
|
|
public static GameRoomApi GameRoomApi
|
|
{
|
|
get
|
|
{
|
|
if (_gameRoomApi == null) _gameRoomApi = new GameRoomApi();
|
|
return _gameRoomApi;
|
|
}
|
|
}
|
|
}
|
|
}
|