31 lines
801 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MyCore.DTO.Common;
using System;
using System.Collections.Generic;
namespace MyCore.Models.MyControlPanel
{
/// <summary>
/// Provider of a device (provider of informations) - e.g. : Meross, Arlo, IoThomas, ...
/// </summary>
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
}
}