/* * Twidere - Twitter client for Android * * Copyright (C) 2012-2015 Mariotaku Lee * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package org.mariotaku.twidere.api.twitter.model; import com.bluelinelabs.logansquare.annotation.JsonField; import com.bluelinelabs.logansquare.annotation.JsonObject; /** * Created by mariotaku on 15/5/10. */ @JsonObject public class Location { @JsonField(name = "woeid") int woeid; @JsonField(name = "country") String countryName; @JsonField(name = "countryCode") String countryCode; @JsonField(name = "placeType") PlaceTypeImpl placeType; @JsonField(name = "name") String name; @JsonField(name = "url") String url; public int getWoeid() { return woeid; } public String getCountryName() { return countryName; } public String getCountryCode() { return countryCode; } public PlaceTypeImpl getPlaceType() { return placeType; } public String getName() { return name; } public String getUrl() { return url; } @JsonObject public static class PlaceTypeImpl { @JsonField(name = "name") String name; @JsonField(name = "code") int code; public int getCode() { return code; } public String getName() { return name; } } }