switch to hardware string from object

This commit is contained in:
Alex Bezdieniezhnykh
2025-05-02 10:14:40 +03:00
parent 2b6a8d1252
commit eb043e94a8
5 changed files with 16 additions and 27 deletions
+2 -2
View File
@@ -35,10 +35,10 @@ public enum ExceptionEnum
WrongEmail = 37,
[Description("HardwareInfo mismatch! You are not authorized to access this resource from this hardware.")]
[Description("Hardware mismatch! You are not authorized to access this resource from this hardware.")]
HardwareIdMismatch = 40,
[Description("HardwareInfo should contain information about this hardware.")]
[Description("Hardware should be not empty.")]
BadHardware = 45,
[Description("Wrong resource file name.")]
-9
View File
@@ -1,9 +0,0 @@
namespace Azaion.Common.Entities;
public class HardwareInfo
{
public string CPU { get; set; } = null!;
public string GPU { get; set; } = null!;
public string MacAddress { get; set; } = null!;
public string Memory { get; set; } = null!;
}
+1 -2
View File
@@ -1,4 +1,3 @@
using Azaion.Common.Entities;
using FluentValidation;
namespace Azaion.Common.Requests;
@@ -6,7 +5,7 @@ namespace Azaion.Common.Requests;
public class GetResourceRequest
{
public string Password { get; set; } = null!;
public HardwareInfo Hardware { get; set; } = null!;
public string Hardware { get; set; } = null!;
public string FileName { get; set; } = null!;
}