This commit is contained in:
Đăng Nguyễn
2025-09-15 17:39:02 +07:00
parent cf309cccba
commit 0d97684f70
69 changed files with 1363 additions and 412 deletions

View File

@@ -0,0 +1,7 @@
namespace RobotApp.Common.Shares.Enums;
public enum NavigationType
{
Differential,
Forklift,
}

View File

@@ -0,0 +1,18 @@
using System.Text.Json;
namespace RobotApp.Common.Shares;
public class JsonOptionExtends
{
public static readonly JsonSerializerOptions Read = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true,
};
public static readonly JsonSerializerOptions Write = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true,
};
}

View File

@@ -0,0 +1,8 @@
namespace RobotApp.Common.Shares;
public record MessageResult(bool IsSuccess, string Message = "");
public record MessageResult<T>(bool IsSuccess, string Message = "")
{
public T? Data { get; set; }
}

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>