-
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.
Add DeviceClientDto for transfer from agent to server. Refactor to al…
…low correct scoping of services in tests.
- Loading branch information
Showing
17 changed files
with
348 additions
and
143 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
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,73 @@ | ||
using Remotely.Shared.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Text.Json; | ||
using System.Threading.Tasks; | ||
|
||
namespace Remotely.Shared.Dtos | ||
{ | ||
[DataContract] | ||
public class DeviceClientDto | ||
{ | ||
[DataMember] | ||
public string AgentVersion { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public double CpuUtilization { get; set; } | ||
|
||
[DataMember] | ||
public string CurrentUser { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public string DeviceName { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public List<Drive> Drives { get; set; } = new(); | ||
|
||
[DataMember] | ||
public string Id { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public bool Is64Bit { get; set; } | ||
|
||
[DataMember] | ||
public bool IsOnline { get; set; } | ||
|
||
[DataMember] | ||
public string[] MacAddresses { get; set; } = Array.Empty<string>(); | ||
|
||
[DataMember] | ||
public string OrganizationId { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public Architecture OsArchitecture { get; set; } | ||
|
||
[DataMember] | ||
public string OsDescription { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public string Platform { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public int ProcessorCount { get; set; } | ||
|
||
[DataMember] | ||
public string PublicIP { get; set; } = string.Empty; | ||
|
||
[DataMember] | ||
public double TotalMemory { get; set; } | ||
|
||
[DataMember] | ||
public double TotalStorage { get; set; } | ||
|
||
[DataMember] | ||
public double UsedMemory { get; set; } | ||
|
||
[DataMember] | ||
public double UsedStorage { get; set; } | ||
} | ||
} |
Oops, something went wrong.