mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-25 06:36:08 +03:00
35 lines
828 B
C#
35 lines
828 B
C#
|
using MvvmCross.ViewModels;
|
|||
|
using ProxySuper.Core.Models;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|