You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mobile/api/service/dto/dto.training.tsx

55 lines
993 B

import { ECategory } from "@/enum/enum.category";
import { ETarget } from "@/enum/enum.target";
export type ExerciceDTO = {
Id: string;
Name: string;
Description: string;
Target: ETarget;
Image: string;
Video: string;
Duration: number;
NbSet: number;
RestTime: number;
NbRep: number;
Weight?: number;
Passed: boolean;
};
export type SessionDTO = {
Id: string;
Name: string;
Description: string;
Category: ECategory;
Exercices: ExerciceDTO[];
};
export type TrainingDTO = {
Id: string;
Name: string;
Description: string;
Sessions: SessionDTO[];
};
export type CreateSessionDTO = {
Name: string;
Description: string;
Category: ECategory;
Exercices: ExerciceDTO[];
};
export type CreateTrainingDTO = {
Name: string;
description: string;
Category: ECategory;
Exercices: ExerciceDTO[];
};
export type UpdateTrainingDTO = {
Id: string;
Name?: string;
description?: string;
Category?: ECategory;
Exercices?: ExerciceDTO[];
};