Drone3D-Team/Drone3D

View on GitHub
app/src/main/java/ch/epfl/sdp/drone3d/model/weather/WeatherReport.kt

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/*
 * Copyright (C) 2021  Drone3D-Team
 * The license can be found in LICENSE at root of the repository
 */

package ch.epfl.sdp.drone3d.model.weather

import java.util.*

/**
 * Represent a weather report with attributes:
 * - [keywordDescription]: a short description of the weather in word
 * - [description]: a description of the weather in word
 * - [iconId]: the id used to fetch the image of the icon with an URL
 * - [temperature]: temperature in Celsius
 * - [humidity]: humidity in %
 * - [windSpeed]: speed of the wind in meter per second
 * - [visibility]: visibility in meter
 */
data class WeatherReport(
    val keywordDescription: String,
    val description: String,
    val iconId: String?,
    val temperature: Double,
    val humidity: Int,
    val windSpeed: Double,
    val visibility: Int,
    val updatedAt: Date
)