parent
53d4dadf68
commit
55eb74c93b
@ -1,22 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Shared;
|
||||
|
||||
namespace Server.Dto.Request
|
||||
{
|
||||
public class RequestExerciceDto
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
public ECategory Category { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
public int NbSets { get; set; }
|
||||
|
||||
public float Duration { get; set; }
|
||||
|
||||
public string Image { get; set; }
|
||||
|
||||
public string Video { get; set; }
|
||||
|
||||
public int NbSeries { get; set; }
|
||||
|
||||
public int NbRepetitions { get; set; }
|
||||
public int NbReps { get; set; }
|
||||
|
||||
public int RestingTime { get; set; }
|
||||
}
|
||||
}
|
@ -1,20 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Shared;
|
||||
|
||||
namespace Server.Dto.Request
|
||||
{
|
||||
public class RequestTrainingProgramDto
|
||||
{
|
||||
[Required]
|
||||
|
||||
public ELang Lang { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
public int WeekDuration { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Difficulty { get; set; }
|
||||
|
||||
|
||||
public string? OwnerId { get; set; }
|
||||
public int? WeekDuration { get; set; }
|
||||
|
||||
public EGoal EGoal { get; set; }
|
||||
|
||||
public EDifficulty EDifficulty { get; set; }
|
||||
public List<RequestSessionDto> Sessions { get; set; } = new List<RequestSessionDto>();
|
||||
}
|
||||
}
|
@ -1,21 +1,27 @@
|
||||
using Shared;
|
||||
|
||||
namespace Server.Dto.Response
|
||||
{
|
||||
public class ResponseExerciceDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public string TemplateId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public float Duration { get; set; }
|
||||
public string TemplateName { get; set; }
|
||||
|
||||
public string Image { get; set; }
|
||||
public string TemplateInstructions { get; set; }
|
||||
|
||||
public string? TemplateImageId { get; set; }
|
||||
|
||||
public string Video { get; set; }
|
||||
public string? TemplateVideoId { get; set; }
|
||||
|
||||
public ECategory Category { get; set; }
|
||||
|
||||
public int NbSeries { get; set; }
|
||||
public int NbSets { get; set; }
|
||||
|
||||
public int NbRepetitions { get; set; }
|
||||
public int NbReps { get; set; }
|
||||
|
||||
public int RestingTime { get; set; }
|
||||
}
|
||||
}
|
@ -1,19 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using Shared;
|
||||
|
||||
namespace Server.Dto.Response
|
||||
{
|
||||
public class ResponseTrainingProgramDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public ELang Lang { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public int WeekDuration { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Difficulty { get; set; }
|
||||
|
||||
|
||||
public string? OwnerId { get; set; }
|
||||
public int? WeekDuration { get; set; }
|
||||
|
||||
public EGoal EGoal { get; set; }
|
||||
|
||||
public EDifficulty EDifficulty { get; set; }
|
||||
public List<ResponseSessionDto> Sessions { get; set; } = new List<ResponseSessionDto>();
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in new issue