Upload project.
This commit is contained in:
22
syski_api/uk.co.syski.api/Models/BIOSDTO.cs
Normal file
22
syski_api/uk.co.syski.api/Models/BIOSDTO.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class BIOSDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public string Caption { get; set; }
|
||||
|
||||
public string Version { get; set; }
|
||||
|
||||
public string Date { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
26
syski_api/uk.co.syski.api/Models/CPUDTO.cs
Normal file
26
syski_api/uk.co.syski.api/Models/CPUDTO.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class CPUDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public string ArchitectureName { get; set; }
|
||||
|
||||
public double ClockSpeed { get; set; }
|
||||
|
||||
public int CoreCount { get; set; }
|
||||
|
||||
public int ThreadCount { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
18
syski_api/uk.co.syski.api/Models/CPUDataDTO.cs
Normal file
18
syski_api/uk.co.syski.api/Models/CPUDataDTO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class CPUDataDTO
|
||||
{
|
||||
|
||||
public double Load { get; set; }
|
||||
|
||||
public int Processes { get; set; }
|
||||
|
||||
public DateTime CollectionDateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
18
syski_api/uk.co.syski.api/Models/GPUDTO.cs
Normal file
18
syski_api/uk.co.syski.api/Models/GPUDTO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class GPUDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
16
syski_api/uk.co.syski.api/Models/KillProcessDTO.cs
Normal file
16
syski_api/uk.co.syski.api/Models/KillProcessDTO.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class KillProcessDTO
|
||||
{
|
||||
|
||||
[JsonProperty(PropertyName = "id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
20
syski_api/uk.co.syski.api/Models/MotherboardDTO.cs
Normal file
20
syski_api/uk.co.syski.api/Models/MotherboardDTO.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class MotherboardDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public string Version { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
20
syski_api/uk.co.syski.api/Models/OSDTO.cs
Normal file
20
syski_api/uk.co.syski.api/Models/OSDTO.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class OSDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string ArchitectureName { get; set; }
|
||||
|
||||
public string Version { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
20
syski_api/uk.co.syski.api/Models/RAMDTO.cs
Normal file
20
syski_api/uk.co.syski.api/Models/RAMDTO.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class RAMDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public long MemoryBytes { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
16
syski_api/uk.co.syski.api/Models/RAMDataDTO.cs
Normal file
16
syski_api/uk.co.syski.api/Models/RAMDataDTO.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class RAMDataDTO
|
||||
{
|
||||
|
||||
public int Free { get; set; }
|
||||
|
||||
public DateTime CollectionDateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
30
syski_api/uk.co.syski.api/Models/RunningProcessesDTO.cs
Normal file
30
syski_api/uk.co.syski.api/Models/RunningProcessesDTO.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class RunningProcessesDTO
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public long MemSize { get; set; }
|
||||
|
||||
public long KernelTime { get; set; }
|
||||
|
||||
public string Path { get; set; }
|
||||
|
||||
public int Threads { get; set; }
|
||||
|
||||
public long UpTime { get; set; }
|
||||
|
||||
public int ParentId { get; set; }
|
||||
|
||||
public DateTime CollectionDateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
22
syski_api/uk.co.syski.api/Models/StorageDTO.cs
Normal file
22
syski_api/uk.co.syski.api/Models/StorageDTO.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class StorageDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public string MemoryTypeName { get; set; }
|
||||
|
||||
public long MemoryBytes { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
26
syski_api/uk.co.syski.api/Models/StorageDataDTO.cs
Normal file
26
syski_api/uk.co.syski.api/Models/StorageDataDTO.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class StorageDataDTO
|
||||
{
|
||||
|
||||
public float Time { get; set; }
|
||||
|
||||
public float Transfers { get; set; }
|
||||
|
||||
public float Reads { get; set; }
|
||||
|
||||
public float Writes { get; set; }
|
||||
|
||||
public float ByteReads { get; set; }
|
||||
|
||||
public float ByteWrites { get; set; }
|
||||
|
||||
public DateTime CollectionDateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
29
syski_api/uk.co.syski.api/Models/SystemDTO.cs
Normal file
29
syski_api/uk.co.syski.api/Models/SystemDTO.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Syski.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class SystemDTO
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string HostName { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public List<string> SystemTypes { get; set; }
|
||||
|
||||
public bool Online { get; set; }
|
||||
|
||||
public double Ping { get; set; }
|
||||
|
||||
public DateTime LastUpdated { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
14
syski_api/uk.co.syski.api/Models/SystemPingDTO.cs
Normal file
14
syski_api/uk.co.syski.api/Models/SystemPingDTO.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class SystemPingDTO
|
||||
{
|
||||
|
||||
public double ping { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
16
syski_api/uk.co.syski.api/Models/UserAuthDTO.cs
Normal file
16
syski_api/uk.co.syski.api/Models/UserAuthDTO.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class UserAuthDTO
|
||||
{
|
||||
|
||||
[Required]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(100, MinimumLength = 6)]
|
||||
public string Password { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
7
syski_api/uk.co.syski.api/Models/UserLoginDTO.cs
Normal file
7
syski_api/uk.co.syski.api/Models/UserLoginDTO.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class UserLoginDTO : UserAuthDTO
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
12
syski_api/uk.co.syski.api/Models/UserRefreshTokenDTO.cs
Normal file
12
syski_api/uk.co.syski.api/Models/UserRefreshTokenDTO.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class UserRefreshTokenDTO
|
||||
{
|
||||
|
||||
[JsonProperty(PropertyName = "refresh_token")]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
7
syski_api/uk.co.syski.api/Models/UserRegisterDTO.cs
Normal file
7
syski_api/uk.co.syski.api/Models/UserRegisterDTO.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class UserRegisterDTO : UserAuthDTO
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
24
syski_api/uk.co.syski.api/Models/UserTokenDTO.cs
Normal file
24
syski_api/uk.co.syski.api/Models/UserTokenDTO.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
namespace Syski.API.Models
|
||||
{
|
||||
public class UserTokenDTO
|
||||
{
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "access_token")]
|
||||
public string AccessToken { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "refresh_token")]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "expiry")]
|
||||
public DateTime Expiry { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user