mirror of
https://github.com/XFox111/MuiCharts.git
synced 2026-04-22 06:51:05 +03:00
94711bb78d
- Reorganized and refactored frontend project
18 lines
357 B
TypeScript
18 lines
357 B
TypeScript
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;
|
|
}
|
|
}
|