using Manager.Interfaces.Models; using MongoDB.Bson.IO; using System; using System.Collections.Generic; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; namespace Manager.Interfaces.DTO { public class SectionDTO { public string id { get; set; } public string label { get; set; } // use in manager public List title { get; set; } public List description { get; set; } public string imageId { get; set; } // == ResourceId public string imageSource { get; set; } // == Image url public string configurationId { get; set; } public bool isSubSection { get; set; } // true if part of menu type public string parentId { get; set; } // only if it's an subsection public SectionType type { get; set; } // !! If IsSubSection == true => Type can't not be menu ! public string data { get; set; } // == Include section type info public DateTime dateCreation { get; set; } // == Include section type info public int? order { get; set; } // Order to show public string instanceId { get; set; } public string latitude { get; set; } // MyVisit - Use to launch automatic content when current location is near public string longitude { get; set; } // MyVisit - Use to launch automatic content when current location is near public int? meterZoneGPS { get; set; } // MyVisit - Nbr of meters of the zone to launch content public bool isBeacon { get; set; } // MyVisit - True if section use beacon, false otherwise public int? beaconId { get; set; } // MyVisit - Beacon' identifier } public class SectionForJsonDTO { public MongoId _id { get; set; } // Correspond à l'objet _id dans le JSON public string Label { get; set; } // Correspond à "Label" dans le JSON public List Title { get; set; } // Correspond à "Title" dans le JSON public List Description { get; set; } // Correspond à "Description" dans le JSON public string ImageId { get; set; } // Correspond à "ImageId" dans le JSON public string ImageSource { get; set; } // Correspond à "ImageSource" dans le JSON public string ConfigurationId { get; set; } // Correspond à "ConfigurationId" dans le JSON public bool IsSubSection { get; set; } // Correspond à "IsSubSection" dans le JSON public string ParentId { get; set; } // Correspond à "ParentId" dans le JSON public int Type { get; set; } // Correspond à "Type" dans le JSON public string Data { get; set; } // Correspond à "Data" dans le JSON public DateCustom DateCreation { get; set; } public int? Order { get; set; } // Correspond à "Order" dans le JSON public string InstanceId { get; set; } // Correspond à "InstanceId" dans le JSON public bool IsBeacon { get; set; } // Correspond à "IsBeacon" dans le JSON public string BeaconId { get; set; } // Correspond à "BeaconId" dans le JSON public string Latitude { get; set; } // Correspond à "Latitude" dans le JSON public string Longitude { get; set; } // Correspond à "Longitude" dans le JSON public int? MeterZoneGPS { get; set; } // Correspond à "MeterZoneGPS" dans le JSON } public class MongoId { public string oid { get; set; } // Correspond à "$oid" dans le JSON } public class DateCustom { public DateTime date { get; set; } // Correspond à "$oid" dans le JSON } }