package org.example.proyecto;

import android.graphics.Bitmap;

/**
 * Created by Victor on 14/09/2016.
 */
public class PrediccionTiempo {

    public float sea_level,grnd_level,temp_kf;
    public int dt;
    public String dt_txt;

    String nombreCiudadUrl;

    public float lon,lat,temp,pressure,humidity,temp_min,temp_max,speed,deg;
    public String weatherMain,description,icon,country,name;
    public String windDirection = null;
    public int error,weatherId,sunrise,sunset;

    public Bitmap bitmapIcon;



    public PrediccionTiempo(String nombreCiudad){
        this.nombreCiudadUrl = nombreCiudad;

    }

    public void actualizarPrediccion(int dt,float temp,float temp_min, float temp_max,
                                     float pressure, float humidity, float sea_level,
                                     float grnd_level, float temp_kf, int weatherId,
                                     String description, String weatherMain, String icon,
                                     String dt_txt, float speed, String windDirection){

        this.dt = dt;
        this.temp = temp;
        this.temp_min = temp_min;
        this.temp_max = temp_max;
        this.pressure = pressure;
        this.humidity = humidity;
        this.sea_level = sea_level;
        this.grnd_level = grnd_level;
        this.temp_kf = temp_kf;
        this.weatherId = weatherId;
        this.description = description;
        this.weatherMain = weatherMain;
        this.icon = icon;
        this.dt_txt = dt_txt;
        this.speed = speed;
        this.windDirection = windDirection;

    }

    public PrediccionTiempo getPrediccion(){
        return PrediccionTiempo.this;
    }


}
