Skip to content

Instantly share code, notes, and snippets.

@Aragami1408
Created September 2, 2018 17:16
Show Gist options
  • Save Aragami1408/2be1a10d56c9fe7fb9f6981fab64ba60 to your computer and use it in GitHub Desktop.
Save Aragami1408/2be1a10d56c9fe7fb9f6981fab64ba60 to your computer and use it in GitHub Desktop.
compare POJO
public class Sys {
private String message;
private String id;
private String sunset;
private String sunrise;
private String type;
private String country;
public String getMessage () {
return message;
}
public void setMessage (String message) {
this.message = message;
}
public String getId () {
return id;
}
public void setId (String id) {
this.id = id;
}
public String getSunset () {
return sunset;
}
public void setSunset (String sunset) {
this.sunset = sunset;
}
public String getSunrise () {
return sunrise;
}
public void setSunrise (String sunrise) {
this.sunrise = sunrise;
}
public String getType () {
return type;
}
public void setType (String type) {
this.type = type;
}
public String getCountry () {
return country;
}
public void setCountry (String country) {
this.country = country;
}
@Override
public String toString() {
return "Sys [message = "+message+", id = "+id+", sunset = "+sunset+", sunrise = "+sunrise+", type = "+type+", country = "+country+"]";
}
}
data class Sys(var message: String, var id: String, var sunset: String, var sunrise: String, var type: String, var country: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment