using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using MyCore.DTO.Common; using System; using System.Collections.Generic; namespace MyCore.Models.MyControlPanel { /// /// Provider of a device (provider of informations) - e.g. : Meross, Arlo, IoThomas, ... /// public class Provider { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } [BsonElement("Name")] public string Name { get; set; } [BsonElement("Username")] public string Username { get; set; } [BsonElement("Password")] public string Password { get; set; } // TODO ENCRYPTED [BsonElement("ApiKey")] public string ApiKey { get; set; } // TODO ENCRYPTED } }