29 lines
712 B
C#
29 lines
712 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DamageAssesment.Api.Surveys.Models
|
|
{
|
|
public enum SurveyStatus
|
|
{
|
|
PENDING,
|
|
ACTIVE,
|
|
INACTIVE
|
|
}
|
|
public class MultiLanSurvey : BaseSurvey
|
|
{
|
|
public object Titles { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
public class Survey : BaseSurvey
|
|
{
|
|
public IEnumerable<SurveyTranslation> Titles { get; set; }
|
|
}
|
|
public class BaseSurvey
|
|
{
|
|
public int Id { get; set; }
|
|
public bool IsEnabled { get; set; }
|
|
public DateTime StartDate { get; set; }
|
|
public DateTime EndDate { get; set; }
|
|
public DateTime CreatedDate { get; set; }
|
|
}
|
|
}
|