manager-service/Manager.Interfaces/DTO/ConfigurationDTO.cs
2024-01-23 17:49:31 +01:00

43 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
namespace Manager.Interfaces.DTO
{
public class ConfigurationDTO
{
public string id { get; set; }
public string label { get; set; }
public List<TranslationDTO> title { get; set; }
public string imageId { get; set; } // == ResourceId
public string imageSource { get; set; } // == Image url
public string primaryColor { get; set; }
public string secondaryColor { get; set; }
public List<string> languages { get; set; } // fr, en, de, nl => Sélection dans une liste déjà établie dans l'application !
public DateTime dateCreation { get; set; }
public bool isMobile { get; set; } // MyVisit - True if for mobile (MyVisit)
public bool isTablet { get; set; }
public bool isOffline { get; set; } // MyVisit - True if MyVisit is full offline
/*public string latitude { get; set; } // MyVisit - latitude of visit ? (MyVisit)
public string longitude { get; set; } // MyVisit - True if for mobile (MyVisit)*/
public string instanceId { get; set; }
public List<string> sectionIds { get; set; }
public string loaderImageId { get; set; } // == ResourceId
public string loaderImageUrl { get; set; } // == Image url
public string weatherCity { get; set; } // Weather City
public DateTimeOffset? weatherUpdatedDate { get; set; } // Weather date update (to only refresh)
public string weatherResult { get; set; } // Weather result
public bool isWeather
{
get
{
return weatherCity != null && weatherCity.Trim().Length > 0;
}
}
public bool isDate { get; set; }
public bool isHour { get; set; }
}
}