Android Open Source - droidcon Location






From Project

Back to project page droidcon.

License

The source code is released under:

Apache License

If you think the Android project droidcon listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.timehop.droidcon2014retrofitsample.data.foursquare.model;
//  w  w  w  .  ja v  a  2  s  .co m
import com.google.gson.annotations.SerializedName;

import org.jetbrains.annotations.Nullable;

public class Location {
  public static final String FIELD_ADDRESS = "address";
  public static final String FIELD_CROSS_STREET = "crossStreet";
  public static final String FIELD_CITY = "city";
  public static final String FIELD_STATE = "state";
  public static final String FIELD_POSTAL_CODE = "postalCode";
  public static final String FIELD_COUNTRY = "country";
  public static final String FIELD_LAT = "lat";
  public static final String FIELD_LNG = "lng";
  public static final String FIELD_DISTANCE = "distance";

  @Nullable @SerializedName(FIELD_ADDRESS) private String address;
  @Nullable @SerializedName(FIELD_CROSS_STREET) private String crossStreet;
  @Nullable @SerializedName(FIELD_CITY) private String city;
  @Nullable @SerializedName(FIELD_STATE) private String state;
  @Nullable @SerializedName(FIELD_POSTAL_CODE) private String postalCode;
  @Nullable @SerializedName(FIELD_COUNTRY) private String country;
  @Nullable @SerializedName(FIELD_LAT) private Double lat;
  @Nullable @SerializedName(FIELD_LNG) private Double lng;
  @Nullable @SerializedName(FIELD_DISTANCE) private Double distance;

  @Nullable
  public String getAddress() {
    return address;
  }

  public void setAddress(@Nullable String address) {
    this.address = address;
  }

  @Nullable
  public String getCrossStreet() {
    return crossStreet;
  }

  public void setCrossStreet(@Nullable String crossStreet) {
    this.crossStreet = crossStreet;
  }

  @Nullable
  public String getCity() {
    return city;
  }

  public void setCity(@Nullable String city) {
    this.city = city;
  }

  @Nullable
  public String getState() {
    return state;
  }

  public void setState(@Nullable String state) {
    this.state = state;
  }

  @Nullable
  public String getPostalCode() {
    return postalCode;
  }

  public void setPostalCode(@Nullable String postalCode) {
    this.postalCode = postalCode;
  }

  @Nullable
  public String getCountry() {
    return country;
  }

  public void setCountry(@Nullable String country) {
    this.country = country;
  }

  @Nullable
  public Double getLat() {
    return lat;
  }

  public void setLat(@Nullable Double lat) {
    this.lat = lat;
  }

  @Nullable
  public Double getLng() {
    return lng;
  }

  public void setLng(@Nullable Double lng) {
    this.lng = lng;
  }

  @Nullable
  public Double getDistance() {
    return distance;
  }

  public void setDistance(@Nullable Double distance) {
    this.distance = distance;
  }
}




Java Source Code List

com.timehop.droidcon2014retrofitsample.CommentsActivity.java
com.timehop.droidcon2014retrofitsample.MainActivity.java
com.timehop.droidcon2014retrofitsample.SubredditActivity.java
com.timehop.droidcon2014retrofitsample.VenueSearchActivity.java
com.timehop.droidcon2014retrofitsample.data.SynchronousExecutor.java
com.timehop.droidcon2014retrofitsample.data.foursquare.FoursquareService.java
com.timehop.droidcon2014retrofitsample.data.foursquare.FoursquareTests.java
com.timehop.droidcon2014retrofitsample.data.foursquare.api.FoursquareCredentials.java
com.timehop.droidcon2014retrofitsample.data.foursquare.api.FoursquareErrorHandler.java
com.timehop.droidcon2014retrofitsample.data.foursquare.api.FoursquareException.java
com.timehop.droidcon2014retrofitsample.data.foursquare.api.FoursquareRequestInterceptor.java
com.timehop.droidcon2014retrofitsample.data.foursquare.api.FoursquareResponse.java
com.timehop.droidcon2014retrofitsample.data.foursquare.legacy.VenueSearchTask.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Category.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Contact.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Icon.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Location.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Menu.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Meta.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Price.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.ResponseWrapper.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Stats.java
com.timehop.droidcon2014retrofitsample.data.foursquare.model.Venue.java
com.timehop.droidcon2014retrofitsample.data.reddit.DateTimeDeserializer.java
com.timehop.droidcon2014retrofitsample.data.reddit.MockRedditService.java
com.timehop.droidcon2014retrofitsample.data.reddit.RedditObjectDeserializer.java
com.timehop.droidcon2014retrofitsample.data.reddit.RedditService.java
com.timehop.droidcon2014retrofitsample.data.reddit.RedditTests.java
com.timehop.droidcon2014retrofitsample.data.reddit.RedditType.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.MockModelHelper.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditAccount.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditComment.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditLink.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditListing.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditMore.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditObjectWrapper.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditObject.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditResponse.java
com.timehop.droidcon2014retrofitsample.data.reddit.model.RedditSubmission.java
com.timehop.droidcon2014retrofitsample.ui.CommentsAdapter.java
com.timehop.droidcon2014retrofitsample.ui.LinkAdapter.java
com.timehop.droidcon2014retrofitsample.ui.VenueAdapter.java