Visualization reaction to devices activating

This commit is contained in:
Charles Magahern
2015-12-31 17:30:23 -08:00
parent 303c620372
commit 4df09f18c5
6 changed files with 93 additions and 14 deletions
@@ -74,7 +74,8 @@ class ConnectionStatusView: UIView {
// MARK: API
var connectivityStatus: Bool {
var connectivityStatus: Bool
{
get
{
return _connectivityStatus
@@ -74,7 +74,8 @@ class SwitchIndicatorView: UIView {
// MARK: API
var status: Bool {
var status: Bool
{
get
{
return _status
@@ -88,7 +89,8 @@ class SwitchIndicatorView: UIView {
}
}
var foregroundColor: UIColor {
var foregroundColor: UIColor
{
get
{
return _foregroundColor
@@ -99,7 +99,8 @@ class WemoDeviceCellView: UICollectionViewCell {
// MARK: API
var device: WemoDevice? {
var device: WemoDevice?
{
get
{
return _device
@@ -112,7 +113,8 @@ class WemoDeviceCellView: UICollectionViewCell {
}
}
var ordinal: Int {
var ordinal: Int
{
get
{
return _ordinal
@@ -125,7 +127,8 @@ class WemoDeviceCellView: UICollectionViewCell {
}
}
var toggled: Bool {
var toggled: Bool
{
get
{
return (_device?.state == .On)