mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-23 17:23:59 -05:00
Refactoring
This commit is contained in:
7
Display/src/app/models/laundry/laundry-status.spec.ts
Normal file
7
Display/src/app/models/laundry/laundry-status.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { LaundryStatus } from './laundry-status';
|
||||
|
||||
describe('LaundryStatus', () => {
|
||||
it('should create an instance', () => {
|
||||
expect(new LaundryStatus()).toBeTruthy();
|
||||
});
|
||||
});
|
||||
4
Display/src/app/models/laundry/laundry-status.ts
Normal file
4
Display/src/app/models/laundry/laundry-status.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export class LaundryStatus {
|
||||
washer = false;
|
||||
dryer = false;
|
||||
}
|
||||
7
Display/src/app/models/weather/weather-reading.spec.ts
Normal file
7
Display/src/app/models/weather/weather-reading.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { WeatherReading } from './weather-reading';
|
||||
|
||||
describe('WeatherReading', () => {
|
||||
it('should create an instance', () => {
|
||||
expect(new WeatherReading()).toBeTruthy();
|
||||
});
|
||||
});
|
||||
19
Display/src/app/models/weather/weather-reading.ts
Normal file
19
Display/src/app/models/weather/weather-reading.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export class WeatherReading {
|
||||
Type: string;
|
||||
Message: null;
|
||||
Timestamp: Date;
|
||||
WindDirection: string;
|
||||
WindSpeed: number;
|
||||
Humidity: number;
|
||||
HumidityTemperature: number;
|
||||
Rain: number;
|
||||
Pressure: number;
|
||||
PressureTemperature: number;
|
||||
BatteryLevel: number;
|
||||
LightLevel: number;
|
||||
Latitude: number;
|
||||
Longitude: number;
|
||||
Altitude: number;
|
||||
SatelliteCount: number;
|
||||
GpsTimestamp: Date;
|
||||
}
|
||||
4
Display/src/app/models/weather/weather-value.ts
Normal file
4
Display/src/app/models/weather/weather-value.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export class WeatherValue {
|
||||
bucket: string;
|
||||
averageValue: number;
|
||||
}
|
||||
Reference in New Issue
Block a user