using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LYFZ.WanYuKeFuData.Model
{
public class FRPConfig
{
public FRPConfig()
{
}
public static FRPConfig JsonDeserializeObject(string jsonData)
{
return (FRPConfig)Newtonsoft.Json.JsonConvert.DeserializeObject(jsonData, typeof(FRPConfig));
}
string _server_addr="";
///
/// 服务器(域名)地址
///
public string Server_addr
{
get { return _server_addr; }
set { _server_addr = value; }
}
int _server_port = 0;
///
/// 服务器端口
///
public int Server_port
{
get { return _server_port; }
set { _server_port = value; }
}
int _vhost_http_port = 0;
///
/// Http访问端口
///
public int Vhost_http_port
{
get { return _vhost_http_port; }
set { _vhost_http_port = value; }
}
int _dashboard_port = 0;
///
/// 后台端口
///
public int Dashboard_port
{
get { return _dashboard_port; }
set { _dashboard_port = value; }
}
string _privilege_token = "";
///
/// 授权Token
///
public string Privilege_token
{
get { return _privilege_token; }
set { _privilege_token = value; }
}
string _dashboard_user = "admin";
///
/// 后台登录帐号
///
public string Dashboard_user
{
get { return _dashboard_user; }
set { _dashboard_user = value; }
}
string _dashboard_pwd = "admin";
///
/// 后台登录密码
///
public string Dashboard_pwd
{
get { return _dashboard_pwd; }
set { _dashboard_pwd = value; }
}
int _IISWebPort = 0;
///
/// IIS Web访问端口
///
public int IISWebPort
{
get { return _IISWebPort; }
set { _IISWebPort = value; }
}
public override string ToString()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}
}
}
/*
{
"server_addr":"bjb.lyfz.net",
"server_port":7000,
"privilege_token":"lyfzbjtoken2",
"vhost_http_port":800,
"dashboard_portr":7500,
"dashboard_user":"admin",
"dashboard_pwd":"admin"
}
*/