You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
539 B
26 lines
539 B
using Newtonsoft.Json;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace PJZS
|
|
{
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
[ComVisible(true)]
|
|
public class GlobalContext
|
|
{
|
|
public User User { get; set; }
|
|
|
|
public string UserToken { get; set; }
|
|
|
|
|
|
#region APIHost
|
|
public string BBYWApiHost { get; set; }
|
|
|
|
public string MDSApiHost { get; set; }
|
|
#endregion
|
|
|
|
public string GetUserString()
|
|
{
|
|
return JsonConvert.SerializeObject(User);
|
|
}
|
|
}
|
|
}
|