2021-03-04 16:25:36 +08:00
|
|
|
|
using ProxySU_Core.Models;
|
|
|
|
|
using System;
|
2021-02-25 09:59:06 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace ProxySU_Core.ViewModels
|
|
|
|
|
{
|
2021-03-04 16:25:36 +08:00
|
|
|
|
public class Terminal : BaseViewModel
|
2021-02-25 09:59:06 +08:00
|
|
|
|
{
|
2021-03-09 17:52:09 +08:00
|
|
|
|
private bool hasConnected;
|
2021-02-25 09:59:06 +08:00
|
|
|
|
|
|
|
|
|
public Terminal(Host host)
|
|
|
|
|
{
|
|
|
|
|
Host = host;
|
2021-03-09 17:52:09 +08:00
|
|
|
|
HasConnected = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool HasConnected
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return hasConnected;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
hasConnected = value;
|
|
|
|
|
Notify("HasConnected");
|
|
|
|
|
}
|
2021-02-25 09:59:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Host Host { get; set; }
|
|
|
|
|
|
|
|
|
|
public string CommandText { get; set; }
|
|
|
|
|
|
2021-03-11 12:05:50 +08:00
|
|
|
|
public string OutputText { get; set; }
|
2021-02-25 09:59:06 +08:00
|
|
|
|
}
|
|
|
|
|
}
|