mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
24 lines
541 B
C#
24 lines
541 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>
|
|
/// Group of devices
|
|
/// </summary>
|
|
public class Group
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonElement("Name")]
|
|
public string Name { get; set; }
|
|
|
|
[BsonElement("Devices")]
|
|
public List<Device> Devices { get; set; }
|
|
}
|
|
}
|