2 * Copyright 2014 Gustavo Martin Morcuende
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package name.gumartinm.weather.information.model;
18 import java.io.Serializable;
19 import java.util.Date;
22 public class WeatherLocation implements Serializable {
23 private static final long serialVersionUID = -1469725417020355109L;
26 private String country;
27 private boolean isSelected;
28 private double latitude;
29 private double longitude;
30 private Date lastCurrentUIUpdate;
31 private Date lastForecastUIUpdate;
32 private boolean isNew;
34 public WeatherLocation setId(int id) {
39 public WeatherLocation setCity(String city) {
44 public WeatherLocation setCountry(String country) {
45 this.country = country;
49 public WeatherLocation setIsSelected(boolean isSelected) {
50 this.isSelected = isSelected;
54 public WeatherLocation setLatitude(double latitude) {
55 this.latitude = latitude;
59 public WeatherLocation setLongitude(double longitude) {
60 this.longitude = longitude;
64 public WeatherLocation setLastCurrentUIUpdate(Date lastCurrentUIUpdate) {
65 this.lastCurrentUIUpdate = lastCurrentUIUpdate;
69 public WeatherLocation setLastForecastUIUpdate(Date lastForecastUIUpdate) {
70 this.lastForecastUIUpdate = lastForecastUIUpdate;
74 public WeatherLocation setIsNew(final boolean isNew) {
83 public String getCity() {
87 public String getCountry() {
91 public boolean getIsSelected() {
92 return this.isSelected;
95 public double getLatitude() {
99 public double getLongitude() {
100 return this.longitude;
103 public Date getLastCurrentUIUpdate() {
104 return this.lastCurrentUIUpdate;
107 public Date getLastForecastUIUpdate() {
108 return this.lastForecastUIUpdate;
111 public boolean getIsNew() {