All API endpoints now use Arrays instead of Lists
This commit is contained in:
@@ -25,7 +25,7 @@ namespace MistoxWebsite.Server.Entities {
|
||||
public string Name { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public int CurShowingIMG = 0;
|
||||
public List<string> Images { get; set; } = new List<string>();
|
||||
public string[] Images { get; set; } = new string[0];
|
||||
public int Cost { get; set; }
|
||||
public string URL { get; set; } = "";
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@ namespace MistoxWebsite.Server.Entities {
|
||||
public class PageLoadObject {
|
||||
public Account? user { get; set; }
|
||||
public AccountClaims? claims { get; set; }
|
||||
public List<Receipt>? receipts { get; set; }
|
||||
public List<Product>? products { get; set; }
|
||||
public List<Cart>? Cart { get; set; }
|
||||
public Receipt[]? receipts { get; set; }
|
||||
public Product[]? products { get; set; }
|
||||
public Cart[]? Cart { get; set; }
|
||||
}
|
||||
|
||||
public class AccountClaims {
|
||||
|
||||
Reference in New Issue
Block a user