Android Open Source - MWM-for-Android-Gen1 Weather Set






From Project

Back to project page MWM-for-Android-Gen1.

License

The source code is released under:

Apache License

If you think the Android project MWM-for-Android-Gen1 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.anddev.android.weatherforecast.weather;
//  www . java  2  s. c o m
import java.util.ArrayList;

/**
 * Combines one WeatherCurrentCondition with a List of
 * WeatherForecastConditions.
 */
public class WeatherSet {
  
  // ===========================================================
  // Fields
  // ===========================================================

  private WeatherCurrentCondition myCurrentCondition = null;
  private ArrayList<WeatherForecastCondition> myForecastConditions = 
    new ArrayList<WeatherForecastCondition>(4);

  // ===========================================================
  // Getter & Setter
  // ===========================================================

  public WeatherCurrentCondition getWeatherCurrentCondition() {
    return myCurrentCondition;
  }

  public void setWeatherCurrentCondition(
      WeatherCurrentCondition myCurrentWeather) {
    this.myCurrentCondition = myCurrentWeather;
  }

  public ArrayList<WeatherForecastCondition> getWeatherForecastConditions() {
    return this.myForecastConditions;
  }

  public WeatherForecastCondition getLastWeatherForecastCondition() {
    return this.myForecastConditions
        .get(this.myForecastConditions.size() - 1);
  }
}




Java Source Code List

org.anddev.android.weatherforecast.weather.GoogleWeatherHandler.java
org.anddev.android.weatherforecast.weather.WeatherCurrentCondition.java
org.anddev.android.weatherforecast.weather.WeatherForecastCondition.java
org.anddev.android.weatherforecast.weather.WeatherSet.java
org.anddev.android.weatherforecast.weather.WeatherUtils.java
org.metawatch.manager.AlarmReceiver.java
org.metawatch.manager.ApiIntentReceiver.java
org.metawatch.manager.Application.java
org.metawatch.manager.BootUpReceiver.java
org.metawatch.manager.CallStateListener.java
org.metawatch.manager.CallVibrate.java
org.metawatch.manager.Call.java
org.metawatch.manager.DeviceSelection.java
org.metawatch.manager.GmailMonitor.java
org.metawatch.manager.Idle.java
org.metawatch.manager.ImageViewer.java
org.metawatch.manager.IntentReceiver.java
org.metawatch.manager.MediaControl.java
org.metawatch.manager.Message.java
org.metawatch.manager.MetaWatchService.java
org.metawatch.manager.MetaWatch.java
org.metawatch.manager.Monitors.java
org.metawatch.manager.NotificationBuilder.java
org.metawatch.manager.Notification.java
org.metawatch.manager.Protocol.java
org.metawatch.manager.Settings.java
org.metawatch.manager.TestSmsLoop.java
org.metawatch.manager.Test.java
org.metawatch.manager.Utils.java