mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Refactor: name, namespace
This commit is contained in:
45
Netch/Interfaces/IServerUtil.cs
Normal file
45
Netch/Interfaces/IServerUtil.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Netch.Models;
|
||||
|
||||
namespace Netch.Interfaces
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user