2014-03-31 07:03:07 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
2014-04-13 15:38:12 +08:00
|
|
|
|
using Newtonsoft.Json;
|
2014-03-31 07:03:07 +08:00
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
namespace Wox.Plugin.Folder
|
2014-12-15 22:58:49 +08:00
|
|
|
|
{
|
2015-01-05 22:41:17 +08:00
|
|
|
|
[Serializable]
|
2014-12-15 22:58:49 +08:00
|
|
|
|
public class FolderLink
|
|
|
|
|
{
|
2014-04-13 15:38:12 +08:00
|
|
|
|
[JsonProperty]
|
2014-12-15 22:58:49 +08:00
|
|
|
|
public string Path { get; set; }
|
2014-04-13 15:38:12 +08:00
|
|
|
|
|
2014-12-15 22:58:49 +08:00
|
|
|
|
public string Nickname
|
|
|
|
|
{
|
2016-01-07 05:34:42 +08:00
|
|
|
|
get { return Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); }
|
2014-12-15 22:58:49 +08:00
|
|
|
|
}
|
2014-04-13 15:38:12 +08:00
|
|
|
|
}
|
2014-03-31 07:03:07 +08:00
|
|
|
|
}
|