A UWP dashboard which provides live updates for the 'Personal Flash in Real-Time (Andy)' and 'Personal Flash in Real-Time (Tony)' artworks -- part of the 'Return to Ritherdon' project by Nicola Ellis. Documentation can be found at
https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/eyes-and-ears
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.
31 lines
707 B
31 lines
707 B
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using Windows.UI;
|
||
|
using Windows.UI.Xaml.Media;
|
||
|
|
||
|
namespace EyesAndEars.UWP.Models {
|
||
|
public class Device {
|
||
|
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
public LightReading LatestReading { get; set; }
|
||
|
|
||
|
public DeviceStatus LatestStatus { get; set; }
|
||
|
|
||
|
public SolidColorBrush StatusColour { get; set; }
|
||
|
|
||
|
public Device() { }
|
||
|
|
||
|
public Device(int id, LightReading reading, DeviceStatus status,
|
||
|
SolidColorBrush colour) {
|
||
|
|
||
|
Id = id;
|
||
|
LatestReading = reading;
|
||
|
LatestStatus = status;
|
||
|
StatusColour = colour;
|
||
|
}
|
||
|
}
|
||
|
}
|