1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-28 16:16:07 +03:00
ProxySU/ProxySuper.Core/ViewModels/ShareLinkViewModel.cs

32 lines
765 B
C#
Raw Normal View History

2021-05-25 13:28:37 +03:00
using MvvmCross.ViewModels;
using ProxySuper.Core.Models;
using System.Collections.Generic;
using System.Text;
namespace ProxySuper.Core.ViewModels
{
public class ShareLinkViewModel : MvxViewModel<List<Record>>
{
public List<Record> Records { get; set; }
public override void Prepare(List<Record> parameter)
{
Records = parameter;
}
public string ShareLinks
{
get
{
StringBuilder sb = new StringBuilder();
Records.ForEach(record =>
{
var link = record.GetShareLink();
sb.AppendLine(link);
});
return sb.ToString();
}
}
}
}