39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using ManagerService.Data;
|
|
using ManagerService.DTOs;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Manager.DTOs
|
|
{
|
|
public class QuizDTO : SectionDTO
|
|
{
|
|
public List<QuestionDTO> questions { get; set; }
|
|
public List<TranslationAndResourceDTO> bad_level { get; set; }
|
|
public List<TranslationAndResourceDTO> medium_level { get; set; }
|
|
public List<TranslationAndResourceDTO> good_level { get; set; }
|
|
public List<TranslationAndResourceDTO> great_level { get; set; }
|
|
}
|
|
|
|
public class QuestionDTO
|
|
{
|
|
public int? id { get; set; }
|
|
public List<TranslationAndResourceDTO> label { get; set; }
|
|
public List<ResponseDTO> responses { get; set; }
|
|
public string imageBackgroundResourceId { get; set; } // question image background
|
|
public ResourceType? imageBackgroundResourceType { get; set; }
|
|
public string imageBackgroundResourceUrl { get; set; } // url to firebase storage or on internet
|
|
public int? order { get; set; } // Order to show
|
|
}
|
|
|
|
public class ResponseDTO
|
|
{
|
|
public List<TranslationAndResourceDTO> label { get; set; }
|
|
public bool isGood { get; set; }
|
|
public int order { get; set; } // Order to show
|
|
}
|
|
|
|
/*public class LevelDTO
|
|
{
|
|
public List<TranslationAndResourceDTO> label { get; set; }
|
|
}*/
|
|
}
|