using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; using System.Text.Json.Serialization; namespace Remotely.Shared.Models { public class CommandContext { [Key] public string ID { get; set; } = Guid.NewGuid().ToString(); public string CommandMode { get; set; } public string CommandText { get; set; } public string SenderUserID { get; set; } public string SenderConnectionID { get; set; } public string[] TargetDeviceIDs { get; set; } public ICollection PSCoreResults { get; set; } = new List(); public ICollection CommandResults { get; set; } = new List(); public DateTime TimeStamp { get; set; } = DateTime.Now; [JsonIgnore] public virtual Organization Organization { get; set; } public string OrganizationID { get; set; } } }