Add IsTablet and remove Title and Description from Article
This commit is contained in:
parent
55a612fd0c
commit
4f1902984b
@ -13,6 +13,7 @@ namespace Manager.Interfaces.DTO
|
||||
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)*/
|
||||
|
||||
@ -7,8 +7,8 @@ namespace Manager.Interfaces.DTO
|
||||
{
|
||||
public class ArticleDTO
|
||||
{
|
||||
public List<TranslationDTO> title { get; set; }
|
||||
public List<TranslationDTO> description { get; set; }
|
||||
//public List<TranslationDTO> title { get; set; }
|
||||
//public List<TranslationDTO> description { get; set; }
|
||||
public List<TranslationDTO> content { get; set; }
|
||||
public string qrCode { get; set; } // MyVisit - QR code identifier int ? String ?
|
||||
public bool isContentTop { get; set; } // MyVisit - True if content is displayed at top, false otherwise
|
||||
|
||||
@ -34,6 +34,9 @@ namespace Manager.Interfaces.Models
|
||||
[BsonElement("IsMobile")]
|
||||
public bool IsMobile { get; set; }
|
||||
|
||||
[BsonElement("IsTablet")]
|
||||
public bool IsTablet { get; set; }
|
||||
|
||||
[BsonElement("IsOffline")]
|
||||
public bool IsOffline { get; set; }
|
||||
|
||||
@ -48,6 +51,7 @@ namespace Manager.Interfaces.Models
|
||||
languages = Languages,
|
||||
secondaryColor = SecondaryColor,
|
||||
isMobile = IsMobile,
|
||||
isTablet = IsTablet,
|
||||
isOffline = IsOffline
|
||||
};
|
||||
}
|
||||
@ -62,6 +66,7 @@ namespace Manager.Interfaces.Models
|
||||
languages = Languages,
|
||||
secondaryColor = SecondaryColor,
|
||||
isMobile = IsMobile,
|
||||
isTablet = IsTablet,
|
||||
isOffline = IsOffline,
|
||||
sections = sections,
|
||||
resources = resources
|
||||
|
||||
@ -112,6 +112,7 @@ namespace ManagerService.Controllers
|
||||
configuration.Languages = new List<string> { "FR", "NL", "EN", "DE" }; // by default all languages
|
||||
configuration.DateCreation = DateTime.Now;
|
||||
configuration.IsMobile = newConfiguration.isMobile;
|
||||
configuration.IsTablet = newConfiguration.isTablet;
|
||||
configuration.IsOffline = newConfiguration.isOffline;
|
||||
|
||||
Configuration configurationCreated = _configurationService.Create(configuration);
|
||||
@ -160,6 +161,7 @@ namespace ManagerService.Controllers
|
||||
configuration.SecondaryColor = updatedConfiguration.secondaryColor;
|
||||
configuration.Languages = updatedConfiguration.languages;
|
||||
configuration.IsMobile = updatedConfiguration.isMobile;
|
||||
configuration.IsTablet = updatedConfiguration.isTablet;
|
||||
configuration.IsOffline = updatedConfiguration.isOffline;
|
||||
|
||||
Configuration configurationModified = _configurationService.Update(updatedConfiguration.id, configuration);
|
||||
@ -403,6 +405,7 @@ namespace ManagerService.Controllers
|
||||
configuration.SecondaryColor = exportConfiguration.secondaryColor;
|
||||
configuration.Languages = exportConfiguration.languages;
|
||||
configuration.IsMobile = exportConfiguration.isMobile;
|
||||
configuration.IsTablet = exportConfiguration.isTablet;
|
||||
configuration.IsOffline = exportConfiguration.isOffline;
|
||||
|
||||
_configurationService.Create(configuration);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user