| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OHV.Common.Shareds;
- namespace OHV.Common.Model
- {
- public class Command
- {
- public string CommandID { get; set; }
- public string TargetID { get; set; }
- public DateTime CreateTime { get; set; }
- public eCommandType Type { get; set; }
- public eCommandState State { get; set; }
- public eCommandByWho ByWho { get; set; }
- public eCommandResult Result { set; get; }
- /// <summary>
- /// 두번째 명령을 주었음을 확인 위해.
- /// </summary>
- public bool IsSecondCommanded { get; set; }
- public virtual bool IsSelected { get; set; }
- public Command()
- {
- CommandID = $"{Guid.NewGuid()}_{DateTime.Now.ToString("HHmmssfff")}";
- CreateTime = DateTime.Now;
- State = eCommandState.Queued;
- Result = eCommandResult.Completed;
- this.IsSecondCommanded = false;
- }
- }
- }
|