init commit

This commit is contained in:
Cole Landers
2023-12-21 08:24:10 -06:00
commit 9d87bf4575
24 changed files with 546 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package dev.clanders.weatherapi.response;
public class Location {
public double lat;
public double lon;
public String name;
public String type;
public String getCountry() {
// Probably not efficient to be splitting this string every time, but does
// it really matter in an app this size????
String[] locationValues = name.split(",");
return locationValues[locationValues.length - 1].trim();
}
}