-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new convention for transferring DTOs to entities.
- Loading branch information
Showing
11 changed files
with
126 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Remotely.Shared.Enums; | ||
using Remotely.Shared.Models; | ||
using Remotely.Shared.Utilities; | ||
using System; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Remotely.Shared.DtoEntityBases; | ||
|
||
public abstract class ScriptResultBase | ||
{ | ||
public virtual required string DeviceID { get; set; } | ||
|
||
public virtual string[]? ErrorOutput { get; set; } | ||
|
||
public virtual bool HadErrors { get; set; } | ||
|
||
public virtual ScriptInputType InputType { get; set; } | ||
|
||
[JsonConverter(typeof(TimeSpanJsonConverter))] | ||
public virtual TimeSpan RunTime { get; set; } | ||
|
||
public virtual string ScriptInput { get; set; } = string.Empty; | ||
|
||
public virtual int? ScheduleId { get; set; } | ||
public virtual Guid? SavedScriptId { get; set; } | ||
|
||
public virtual int? ScriptRunId { get; set; } | ||
|
||
|
||
public virtual string? SenderConnectionID { get; set; } | ||
public virtual string? SenderUserName { get; set; } = null!; | ||
public virtual ScriptingShell Shell { get; set; } | ||
public virtual string[]? StandardOutput { get; set; } | ||
|
||
public virtual DateTimeOffset TimeStamp { get; set; } = DateTimeOffset.Now; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Remotely.Shared.DtoEntityBases; | ||
using Remotely.Shared.Enums; | ||
using Remotely.Shared.Models; | ||
using Remotely.Shared.Utilities; | ||
using System; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Remotely.Shared.Dtos; | ||
|
||
public class ScriptResultDto : ScriptResultBase | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.