/*
 * Copyright (C) 2014 Medlert, Inc.
 */
package ge.tot.weatherapp;

/**
 * Forecast
 */
public class Forecast {

}

@@ -68,51 +68,1170 @@
 p;%0A%0A
-/**%0A * Forecast%0A */%0Apublic class Forecast %7B%0A
+import java.util.Date;%0Aimport java.util.Random;%0A%0A/**%0A * Forecast%0A */%0Apublic class Forecast %7B%0A    private final Date date;%0A    private final String description;%0A    private final double nightTemp;%0A    private final double dayTemp;%0A    private final String iconUrl;%0A%0A    public static Forecast makeRandom(Date date) %7B%0A        Random random = new Random(System.currentTimeMillis());%0A        double dayTemp = random.nextDouble() * 10.0;%0A        double nightTemp = random.nextDouble() * 5.0;%0A        return new Forecast(date, %22Random%22, dayTemp, nightTemp, null);%0A    %7D%0A%0A    public Forecast(Date date, String description, double nightTemp, double dayTemp, String iconUrl) %7B%0A        this.date = date;%0A        this.description = description;%0A        this.nightTemp = nightTemp;%0A        this.dayTemp = dayTemp;%0A        this.iconUrl = iconUrl;%0A    %7D%0A%0A    public Date getDate() %7B%0A        return date;%0A    %7D%0A%0A    public String getDescription() %7B%0A        return description;%0A    %7D%0A%0A    public double getNightTemp() %7B%0A        return nightTemp;%0A    %7D%0A%0A    public double getDayTemp() %7B%0A        return dayTemp;%0A    %7D%0A%0A    public String getIconUrl() %7B%0A        return iconUrl;%0A    %7D
 %0A%7D%0A

Add Forecast