33 lines
1.1 KiB
C#
33 lines
1.1 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;
|
|
}
|
|
}
|
|
public static MapApi mapApi = new MapApi();
|
|
public static MapInterruptRecordApi mapInterruptRecordApi = new MapInterruptRecordApi();
|
|
public static ThirdPartApi thirdPartApi = new ThirdPartApi();
|
|
public static IPEndPoint UdpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
|
public static IPEndPoint TcpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11001);
|
|
}
|
|
}
|