mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Remotely.Shared.Models
|
|
{
|
|
public class CommandResult
|
|
{
|
|
[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; }
|
|
[NotMapped]
|
|
public ICollection<PSCoreCommandResult> PSCoreResults { get; set; } = new List<PSCoreCommandResult>();
|
|
[NotMapped]
|
|
public ICollection<GenericCommandResult> CommandResults { get; set; } = new List<GenericCommandResult>();
|
|
public DateTimeOffset TimeStamp { get; set; } = DateTimeOffset.Now;
|
|
[JsonIgnore]
|
|
public Organization Organization { get; set; }
|
|
public string OrganizationID { get; set; }
|
|
}
|
|
}
|