2021-05-22 06:48:44 +03:00
|
|
|
|
using MvvmCross.ViewModels;
|
|
|
|
|
using ProxySuper.Core.Models.Projects;
|
2021-05-24 13:57:17 +03:00
|
|
|
|
using ProxySuper.Core.Services;
|
2021-05-22 06:48:44 +03:00
|
|
|
|
|
|
|
|
|
namespace ProxySuper.Core.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class TrojanGoConfigViewModel : MvxViewModel<TrojanGoSettings>
|
|
|
|
|
{
|
|
|
|
|
public TrojanGoSettings Settings { get; set; }
|
|
|
|
|
|
|
|
|
|
public override void Prepare(TrojanGoSettings parameter)
|
|
|
|
|
{
|
|
|
|
|
Settings = parameter;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-24 13:57:17 +03:00
|
|
|
|
public string Link
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ShareLink.BuildTrojanGo(Settings);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-05-22 06:48:44 +03:00
|
|
|
|
}
|
|
|
|
|
}
|