79 lines
1.7 KiB
C#
79 lines
1.7 KiB
C#
using Community;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
/// <summary>
|
|
/// TCPIP参数
|
|
/// </summary>
|
|
public class TCPIPClass : NotificationObject
|
|
{
|
|
public int ID { get; set; }
|
|
/// <summary>
|
|
/// 软件ID
|
|
/// </summary>
|
|
public int SoftID { get; set; }
|
|
/// <summary>
|
|
/// 简码 用于发给服务器进行身份识别
|
|
/// </summary>
|
|
public string ShortCode { get; set; }
|
|
|
|
#region 本机IP
|
|
private string ip;
|
|
/// <summary>
|
|
/// 本机IP
|
|
/// </summary>
|
|
public string IP
|
|
{
|
|
get { return ip; }
|
|
set
|
|
{
|
|
ip = value;
|
|
this.RaisePropertyChanged("IP");
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 本机Port端口号
|
|
private int port;
|
|
/// <summary>
|
|
/// 本机Port端口号
|
|
/// </summary>
|
|
public int Port
|
|
{
|
|
get { return port; }
|
|
set
|
|
{
|
|
port = value;
|
|
this.RaisePropertyChanged("Port");
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
private bool inServer;
|
|
/// <summary>
|
|
/// 是否为服务器通讯连接
|
|
/// </summary>
|
|
public bool InServer
|
|
{
|
|
get { return inServer; }
|
|
set
|
|
{
|
|
inServer = value;
|
|
this.RaisePropertyChanged("InServer");
|
|
}
|
|
}
|
|
|
|
public TCPIPClass()
|
|
{
|
|
IP = "127.0.0.1";//"10.10.11.192";
|
|
Port = 58666;
|
|
}
|
|
|
|
}
|
|
}
|