Files
netch/Netch/Models/IServerUtil.cs
Connection Refused 5803b94ae9 Update NativeMethods
2021-04-02 02:40:13 +08:00

45 lines
949 B
C#

using Netch.Controllers;
using System;
using System.Collections.Generic;
namespace Netch.Models
{
public interface IServerUtil
{
/// <summary>
/// Collection order basis
/// </summary>
ushort Priority { get; }
/// <summary>
/// Server.Type
/// </summary>
string TypeName { get; }
/// <summary>
/// Protocol Name
/// </summary>
string FullName { get; }
string ShortName { get; }
/// <summary>
/// Support URI
/// </summary>
string[] UriScheme { get; }
public abstract Type ServerType { get; }
public void Edit(Server s);
public void Create();
string GetShareLink(Server s);
public abstract IServerController GetController();
public abstract IEnumerable<Server> ParseUri(string text);
bool CheckServer(Server s);
}
}