123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace vStation.URMStationRelevant
- {
- public enum URMUserType
- {
- None,
- Admin,
- Client,
- }
- public class URMConfig
- {
- public static string RPCAddress { get; set; }
- public static URMUserType URMUserType { get; set; }
- public static string UserName { get; set; }
- public static string Pwd { get; set; }
- public static string Token { get; set; }
- public static string Code { get; set; }
- public static bool IsAutoLogin =>true;
- public static bool IsAcceptPrivacy => true;
- public static string ManagementURL { get; set; }
- public static string URMWorkingDirectory { get; set; }
- public static string StorageDirectory => Path.Combine(URMWorkingDirectory, "AppStorage");
- public static string StatesPath => Path.Combine(StorageDirectory, "states.dat");
- public static string ConfigPath=> Path.Combine(StorageDirectory, "config.conf");
- public static string StationVersionPath=> Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "StationVersion.txt");
- public static bool GetIsSingleMode()
- {
- if (File.Exists(StationVersionPath))
- {
- var txt = File.ReadAllText(StationVersionPath).Trim();
- return txt == "single";
- }
- return false;
- }
- public static bool LoginByDongle { get; internal set; }
- }
- }
|