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.

52 lines
1.2 KiB

using BBWYB.Client.Models;
using CommunityToolkit.Mvvm.ComponentModel;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace BBWYB.Client
{
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
public class GlobalContext : ObservableObject
{
public GlobalContext()
{
BBWYBApiVersion = "10019";
}
private User user;
public User User { get => user; set { SetProperty(ref user, value); } }
public string UserToken { get; set; }
public IList<LogisticsResponse> LogisticsResponseList { get; set; }
/// <summary>
/// JD客户端
/// </summary>
//public IJdClient JdClient { get; set; }
#region APIHost
public string BBWYApiHost { get; set; }
public string MDSApiHost { get; set; }
public string BBWYCApiHost { get; set; }
public string QKApiHost { get; set; }
public string BBWYBApiVersion { get; set; }
public string GetUserString()
{
return JsonConvert.SerializeObject(User);
}
public string GetBBWYBApiVersion()
{
return BBWYBApiVersion;
}
#endregion
}
}