1
0
mirror of https://github.com/XFox111/MuiCharts.git synced 2026-04-22 06:51:05 +03:00

- Implemented actual API for frontend

- Reorganized and refactored frontend project
This commit is contained in:
2024-02-23 13:06:16 +00:00
parent c27fce37c6
commit 94711bb78d
23 changed files with 459 additions and 90 deletions
@@ -0,0 +1,9 @@
import IPoint from "../../Models/IPoint";
export default interface IGetPointsResponse
{
points: IPoint[],
totalCount: number,
count: number,
page: number
}
@@ -0,0 +1,17 @@
export default class UpsertPointRequest
{
public name: string;
public height: number;
constructor(name: string, height: number)
{
if (name.length < 1)
throw new Error("Name must be at least 1 character long");
if (height !== Math.floor(height))
throw new Error("Height must be an integer");
this.name = name;
this.height = height;
}
}