This commit is contained in:
Thomas Fransolet 2024-04-24 15:24:05 +02:00
parent 9ff5a7fec8
commit bd4bf8c959
2 changed files with 5 additions and 0 deletions

View File

@ -41,5 +41,6 @@ namespace Manager.Interfaces.DTO
public bool isSectionImageBackground { get; set; } // Use to display background for section main image (or not)
public int? roundedValue { get; set; } // Use to set rounded decoration value
public int? screenPercentageSectionsMainPage { get; set; } // Use to set percentage of screen will be used to show sections (base on center)
public string appVersion { get; set; } // Use to set percentage of screen will be used to show sections (base on center)
}
}

View File

@ -85,6 +85,9 @@ namespace Manager.Interfaces.Models
[BsonElement("ScreenPercentageSectionsMainPage")]
public int? ScreenPercentageSectionsMainPage { get; set; }
[BsonElement("AppVersion")]
public string AppVersion { get; set; }
public ConfigurationDTO ToDTO(List<string> sectionIds)
{
return new ConfigurationDTO()
@ -112,6 +115,7 @@ namespace Manager.Interfaces.Models
isSectionImageBackground = IsSectionImageBackground,
roundedValue = RoundedValue,
screenPercentageSectionsMainPage = ScreenPercentageSectionsMainPage,
appVersion = AppVersion,
sectionIds = sectionIds
};
}