You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO;
- using System.Diagnostics;
- using SimpleJson;
- using Shadowsocks.Controller;
-
- namespace Shadowsocks.Model
- {
- [Serializable]
- public class Server
- {
- public string server;
- public int server_port;
- public int local_port;
- public string password;
- public string method;
- public string remarks;
-
- public string FriendlyName()
- {
- if (string.IsNullOrEmpty(server))
- {
- return I18N.GetString("New server");
- }
- if (string.IsNullOrEmpty(remarks))
- {
- return server + ":" + server_port;
- }
- else
- {
- return remarks + " (" + server + ":" + server_port + ")";
- }
- }
- }
- }
|