You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/Platform/ViewModels/HomeModel.cs

43 lines
1.3 KiB

using Infrastructure.Application;
using Application.Domain.Entities;
using System;
using System.Collections.Generic;
namespace Platform.ViewModels
{
public class HomeModel : PagedList<IoTDevice>
{
public HomeModel()
{
PageSize = this.DefaultPageSize = 50;
}
public bool ShowAll { get; set; }
public Guid? OrganId { get; set; }
public Guid? BuildingId { get; set; }
public Organ Organ { get; set; }
public Building Building { get; set; }
public List<Organ> Organs { get; set; } = new List<Organ>();
public List<Building> Buildings { get; set; } = new List<Building>();
public List<IoTDevice> Deviceses { get; set; } = new List<IoTDevice>();
public List<IoTScene> Scenes { get; set; } = new List<IoTScene>();
public int? MaxLight { get; set; }
public int? MinLight { get; set; }
public float? MinTemperaturest { get; set; }
public float? MaxTemperatures { get; set; }
public float? MinHumidity { get; set; }
public float? MaxHumidity { get; set; }
public int? Open { get; set; }
public int? Close { get; set; }
public new int[] GetPageSizes()
{
return new int[] { 50, 100 };
}
}
}