summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo')
-rw-r--r--app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin1.java64
-rw-r--r--app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin2.java64
-rw-r--r--app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Locality1.java54
-rw-r--r--app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Place.java40
-rw-r--r--app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Postal.java54
5 files changed, 273 insertions, 3 deletions
diff --git a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin1.java b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin1.java
new file mode 100644
index 0000000..67ba44d
--- /dev/null
+++ b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin1.java
@@ -0,0 +1,64 @@
+/**
+ * Copyright (C) 2016 The CyanogenMod Project
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ */
+
+package org.cyanogenmod.yahooweatherprovider.yahoo.response;
+
+public class Admin1 {
+ private String content;
+
+ private String woeid;
+
+ private String code;
+
+ private String type;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getWoeid() {
+ return woeid;
+ }
+
+ public void setWoeid(String woeid) {
+ this.woeid = woeid;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "[content = " + content + ", woeid = " + woeid + ", code = " + code + ", type = " + type + "]";
+ }
+} \ No newline at end of file
diff --git a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin2.java b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin2.java
new file mode 100644
index 0000000..436073a
--- /dev/null
+++ b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Admin2.java
@@ -0,0 +1,64 @@
+/**
+ * Copyright (C) 2016 The CyanogenMod Project
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ */
+
+package org.cyanogenmod.yahooweatherprovider.yahoo.response;
+
+public class Admin2 {
+ private String content;
+
+ private String woeid;
+
+ private String code;
+
+ private String type;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getWoeid() {
+ return woeid;
+ }
+
+ public void setWoeid(String woeid) {
+ this.woeid = woeid;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "[content = " + content + ", woeid = " + woeid + ", code = " + code + ", type = " + type + "]";
+ }
+}
diff --git a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Locality1.java b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Locality1.java
new file mode 100644
index 0000000..901090b
--- /dev/null
+++ b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Locality1.java
@@ -0,0 +1,54 @@
+/**
+ * Copyright (C) 2016 The CyanogenMod Project
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ */
+
+package org.cyanogenmod.yahooweatherprovider.yahoo.response;
+
+public class Locality1 {
+ private String content;
+
+ private String woeid;
+
+ private String type;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getWoeid() {
+ return woeid;
+ }
+
+ public void setWoeid(String woeid) {
+ this.woeid = woeid;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "[content = " + content + ", woeid = " + woeid + ", type = " + type + "]";
+ }
+} \ No newline at end of file
diff --git a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Place.java b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Place.java
index 5c784dc..03c9011 100644
--- a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Place.java
+++ b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Place.java
@@ -21,7 +21,13 @@ public class Place {
private Country country;
- private Admin3 admin1;
+ private Admin1 admin1;
+ private Admin2 admin2;
+ private Admin3 admin3;
+
+ private Postal postal;
+
+ private Locality1 locality1;
public String getWoeid() {
return woeid;
@@ -39,14 +45,42 @@ public class Place {
this.country = country;
}
- public Admin3 getAdmin () {
+ public Admin1 getAdmin1() {
return admin1;
}
- public void setAdmin (Admin3 admin1) {
+ public void setAdmin1(Admin1 admin1) {
this.admin1 = admin1;
}
+ public Admin2 getAdmin2() {
+ return admin2;
+ }
+
+ public void setAdmin2(Admin2 admin2) {
+ this.admin2 = admin2;
+ }
+
+ public Admin3 getAdmin3() {
+ return admin3;
+ }
+
+ public void setAdmin3(Admin3 admin3) {
+ this.admin3 = admin3;
+ }
+
+ public Postal getPostal() {
+ return postal;
+ }
+
+ public void setPostal(Postal postal) {
+ this.postal = postal;
+ }
+
+ public Locality1 getLocality1() {
+ return locality1;
+ }
+
@Override
public String toString() {
return "[woeid = " + woeid + ", country = " + country + "]";
diff --git a/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Postal.java b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Postal.java
new file mode 100644
index 0000000..d3e1db1
--- /dev/null
+++ b/app/src/main/java/org/cyanogenmod/yahooweatherprovider/yahoo/response/Postal.java
@@ -0,0 +1,54 @@
+/**
+ * Copyright (C) 2016 The CyanogenMod Project
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ */
+
+package org.cyanogenmod.yahooweatherprovider.yahoo.response;
+
+public class Postal {
+ private String content;
+
+ private String woeid;
+
+ private String type;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getWoeid() {
+ return woeid;
+ }
+
+ public void setWoeid(String woeid) {
+ this.woeid = woeid;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "ClassPojo [content = " + content + ", woeid = " + woeid + ", type = " + type + "]";
+ }
+} \ No newline at end of file