Models and Static Details

This commit is contained in:
Kira Jiroux 2024-12-06 16:26:20 -05:00
parent c856f9b28e
commit 10fcab79c1
7 changed files with 72 additions and 1 deletions

View File

@ -0,0 +1,10 @@
namespace PokemonSleepWeb.Models
{
public class PokemonDto
{
public int Id { get; set; }
public string Name { get; set; }
public string SleepType { get; set; }
public string Speciality { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace PokemonSleepWeb.Models
{
public class PokemonNatureDto
{
public int Id { get; set; }
public string Nature { get; set; }
public int BerryRating { get; set; }
public int IngredientRating { get; set; }
public int SkillRating { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace PokemonSleepWeb.Models
{
public class PokemonSubskillDto
{
public int Id { get; set; }
public string SubSkill { get; set; }
public int BerryRank { get; set; }
public int IngredientRank { get; set; }
public int SkillRank { get; set; }
}
}

View File

@ -0,0 +1,12 @@
using static PokemonSleepWeb.Utility.StaticDetails;
namespace PokemonSleepWeb.Models
{
public class RequestDto
{
public ApiType ApiType { get; set; } = ApiType.GET;
public string Url { get; set; }
public object Data { get; set; }
public string AccessToken { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace PokemonSleepWeb.Models
{
public class ResponseDto
{
public object? Result { get; set; }
public bool IsSuccess { get; set; } = true;
public string Message { get; set; } = "";
}
}

View File

@ -13,7 +13,6 @@
<ItemGroup> <ItemGroup>
<Folder Include="Controllers\" /> <Folder Include="Controllers\" />
<Folder Include="Models\" />
<Folder Include="Service\" /> <Folder Include="Service\" />
</ItemGroup> </ItemGroup>

View File

@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Mvc.Infrastructure;
namespace PokemonSleepWeb.Utility
{
public class StaticDetails
{
public static string CouponAPIBase { get; set; }
public static string AuthAPIBase { get; set; }
public static string ProductAPIBase { get; set; }
public static string ShoppingCartAPIBase { get; set; }
public const string RoleAdmin = "ADMIN";
public const string RoleCustomer = "CUSTOMER";
public const string TokenCookie = "JWTToken";
public enum ApiType
{
GET, POST, PUT, DELETE
}
}
}