using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MyCore.Models { public class Widget { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } [BsonElement("Name")] public string Name { get; set; } [BsonElement("DisplayName")] public string DisplayName { get; set; } [BsonElement("Type")] public string Type { get; set; } [BsonElement("Activated")] public bool Activated { get; set; } [BsonElement("Form")] public string Form { get; set; } [BsonElement("Font")] public string Font { get; set; } [BsonElement("Color")] public string Color { get; set; } [BsonElement("Size")] public string Size { get; set; } [BsonElement("Width")] public int Width { get; set; } [BsonElement("Height")] public int Height { get; set; } [BsonElement("PositionX")] public int PositionX { get; set; } [BsonElement("PositionY")] public int PositionY { get; set; } } }