Created
September 2, 2018 17:16
-
-
Save Aragami1408/2be1a10d56c9fe7fb9f6981fab64ba60 to your computer and use it in GitHub Desktop.
compare POJO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+"]"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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