mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using MyCore.Interfaces.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCore.Interfaces.DTO
|
|
{
|
|
public class AutomationDTO
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string UserId { get; set; }
|
|
public DateTime CreatedDate { get; set; }
|
|
public DateTime UpdatedDate { get; set; }
|
|
}
|
|
|
|
public class AutomationDetailDTO : AutomationDTO
|
|
{
|
|
public List<Trigger> Triggers { get; set; }
|
|
public List<Condition> Conditions { get; set; }
|
|
public List<MyCore.Interfaces.Models.Action> Actions { get; set; }
|
|
public List<string> DeviceIds { get; set; }
|
|
}
|
|
|
|
public class AutomationCreateOrUpdateDetailDTO : AutomationDTO
|
|
{
|
|
public List<Trigger> Triggers { get; set; }
|
|
public List<Condition> Conditions { get; set; }
|
|
public List<MyCore.Interfaces.Models.Action> Actions { get; set; }
|
|
public List<string> DeviceIds { get; set; }
|
|
}
|
|
}
|