74 lines
1.5 KiB
C#
74 lines
1.5 KiB
C#
using Community;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
public class RobotModel : NotificationObject
|
|
{
|
|
public int ID { get; set; }
|
|
|
|
private string robotName;
|
|
/// <summary>
|
|
/// 机器人名称
|
|
/// </summary>
|
|
public string RobotName
|
|
{
|
|
get { return robotName; }
|
|
set { robotName = value;
|
|
this.RaisePropertyChanged("RobotName");
|
|
}
|
|
}
|
|
|
|
private int speeds;
|
|
/// <summary>
|
|
/// 机器人总速度
|
|
/// </summary>
|
|
public int SpeedS
|
|
{
|
|
get { return speeds; }
|
|
set
|
|
{
|
|
speeds = value;
|
|
this.RaisePropertyChanged("SpeedS");
|
|
}
|
|
}
|
|
|
|
private string ipStr;
|
|
/// <summary>
|
|
/// IP地址
|
|
/// </summary>
|
|
public string IpStr
|
|
{
|
|
get { return ipStr; }
|
|
set { ipStr = value; }
|
|
}
|
|
|
|
private int port;
|
|
/// <summary>
|
|
/// 连接端口号
|
|
/// </summary>
|
|
public int Port
|
|
{
|
|
get { return port; }
|
|
set { port = value; }
|
|
}
|
|
|
|
|
|
private int port1;
|
|
/// <summary>
|
|
/// 控制端口
|
|
/// </summary>
|
|
public int Port1
|
|
{
|
|
get { return port1; }
|
|
set { port1 = value; }
|
|
}
|
|
|
|
|
|
}
|
|
}
|