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.
78 lines
1.8 KiB
78 lines
1.8 KiB
using BBWY.Client.Models;
|
|
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace BBWY.Client
|
|
{
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
[ComVisible(true)]
|
|
public class GlobalContext : NotifyObject
|
|
{
|
|
public GlobalContext()
|
|
{
|
|
ShopServiceGroupList = new List<string>();
|
|
ShopServiceGroupLowerList = new List<string>();
|
|
ClientVersion = "10221";
|
|
}
|
|
|
|
|
|
private string title;
|
|
|
|
public string Title { get=> title; set { Set(ref title, value); } }
|
|
|
|
|
|
|
|
private User user;
|
|
|
|
|
|
|
|
public User User { get => user; set { Set(ref user, value); } }
|
|
|
|
public string UserToken { get; set; }
|
|
|
|
public IList<LogisticsResponse> LogisticsResponseList { get; set; }
|
|
|
|
public IList<string> ShopServiceGroupList { get; set; }
|
|
|
|
public IList<string> ShopServiceGroupLowerList { get; set; }
|
|
|
|
public string ClientVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物流公司列表
|
|
/// </summary>
|
|
public List<string> ExpressNameList { get; set; }
|
|
|
|
/// <summary>
|
|
/// JD客户端
|
|
/// </summary>
|
|
//public IJdClient JdClient { get; set; }
|
|
|
|
#region APIHost
|
|
public string BBYWApiHost { get; set; }
|
|
|
|
public string MDSApiHost { get; set; }
|
|
|
|
public string JOSApiHost { get; set; }
|
|
|
|
public string _1688ApiHost { get; set; }
|
|
|
|
public string QKApiHost { get; set; }
|
|
|
|
|
|
#endregion
|
|
|
|
#region Web
|
|
public string GetUserString()
|
|
{
|
|
return JsonConvert.SerializeObject(User);
|
|
}
|
|
|
|
public string GetClientApiVersion()
|
|
{
|
|
return ClientVersion;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|