package survivingwithandroid.com.androiddatabinding.model;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.graphics.drawable.Drawable;
import survivingwithandroid.com.androiddatabinding.BR;
/*
* Copyright (C) 2015, francesco Azzola
*
*(http://www.survivingwithandroid.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* 22/07/15
*/
/*
public class Data {
public String temp;
public String pressure;
public String humidity;
public String wind;
public String descr;
}
*/
public class Data extends BaseObservable {
private String temp;
private String pressure;
private String humidity;
private String wind;
private String descr;
private String city;
private int icon;
@Bindable
public String getTemp() {
return temp;
}
public void setTemp(String temp) {
this.temp = temp;
notifyPropertyChanged(BR.temp);
}
@Bindable
public String getPressure() {
return pressure;
}
public void setPressure(String pressure) {
this.pressure = pressure;
notifyPropertyChanged(BR.pressure);
}
@Bindable
public String getHumidity() {
return humidity;
}
public void setHumidity(String humidity) {
this.humidity = humidity;
notifyPropertyChanged(BR.humidity);
}
@Bindable
public String getWind() {
return wind;
}
public void setWind(String wind) {
this.wind = wind;
notifyPropertyChanged(BR.wind);
}
@Bindable
public String getDescr() {
return descr;
}
public void setDescr(String descr) {
this.descr = descr;
notifyPropertyChanged(BR.descr);
}
@Bindable
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
notifyPropertyChanged(BR.city);
}
@Bindable
public int getIcon() {
return icon;
}
public void setIcon(int icon) {
this.icon = icon;
notifyPropertyChanged(BR.icon);
}
}