All files / src/model Weather.tsx

100% Statements 30/30
100% Branches 0/0
100% Functions 21/21
100% Lines 30/30

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107                              6x 6x 6x 6x 6x 6x 6x 6x 6x 6x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x       1x    
import City from "./City";
 
export default class Weather {
    private _at: string;
    private _visibility: number;
    private _weatherType: string;
    private _weatherDescription: string;
    private _temperature: number;
    private _temperatureFeelsLike: number;
    private _humidity: number;
    private _windSpeed: number;
    private _pressure: number;
    private _city: City;
  
    constructor(at: string, visibility: number, weatherType: string, weatherDescription: string, temperature: number, temperatureFeelsLike: number, humidity: number, windSpeed: number, pressure: number, city: City) {
      this._at = at;
      this._visibility = visibility;
      this._weatherType = weatherType;
      this._weatherDescription = weatherDescription;
      this._temperature = temperature;
      this._temperatureFeelsLike = temperatureFeelsLike;
      this._humidity = humidity;
      this._windSpeed = windSpeed;
      this._pressure = pressure;
      this._city = city;
    }
  
    get at(): string {
      return this._at;
    }
  
    set at(value: string) {
      this._at = value;
    }
  
    get visibility(): number {
      return this._visibility;
    }
  
    set visibility(value: number) {
      this._visibility = value;
    }
  
    get weatherType(): string {
      return this._weatherType;
    }
  
    set weatherType(value: string) {
      this._weatherType = value;
    }
  
    get weatherDescription(): string {
      return this._weatherDescription;
    }
  
    set weatherDescription(value: string) {
      this._weatherDescription = value;
    }
  
    get temperature(): number {
      return this._temperature;
    }
  
    set temperature(value: number) {
      this._temperature = value;
    }
  
    get temperatureFeelsLike(): number {
      return this._temperatureFeelsLike;
    }
  
    set temperatureFeelsLike(value: number) {
      this._temperatureFeelsLike = value;
    }
  
    get humidity(): number {
      return this._humidity;
    }
  
    set humidity(value: number) {
      this._humidity = value;
    }
  
    get windSpeed(): number {
      return this._windSpeed;
    }
  
    set windSpeed(value: number) {
      this._windSpeed = value;
    }
  
    get pressure(): number {
      return this._pressure;
    }
  
    set pressure(value: number) {
      this._pressure = value;
    }
  
    get city(): City {
      return this._city;
    }
  
    set city(value: City) {
      this._city = value;
    }
  }