Android Open Source - droidcon Venue






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;
/*from  w w  w .  ja  v  a 2 s  .  co m*/
import com.google.gson.annotations.SerializedName;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class Venue {
  public static final String FIELD_VENUES = "venues";
  public static final String FIELD_ID = "id";
  public static final String FIELD_NAME = "name";
  public static final String FIELD_CONTACT = "contact";
  public static final String FIELD_LOCATION = "location";
  public static final String FIELD_CATEGORIES = "categories";
  public static final String FIELD_VERIFIED = "verified";
  public static final String FIELD_STATS = "stats";
  public static final String FIELD_URL = "url";
  public static final String FIELD_MENU = "menu";

  @SerializedName(FIELD_ID) @NotNull private String id;
  @SerializedName(FIELD_NAME) @NotNull private String name;
  @SerializedName(FIELD_CONTACT) @NotNull private Contact contact;
  @SerializedName(FIELD_LOCATION) @NotNull private Location location;
  @SerializedName(FIELD_CATEGORIES) @NotNull private List<Category> categories;
  @SerializedName(FIELD_VERIFIED) private boolean verified;
  @SerializedName(FIELD_STATS) @NotNull private Stats stats;
  @SerializedName(FIELD_URL) @Nullable private String url;
  @SerializedName(FIELD_MENU) @Nullable private Menu menu;

  @NotNull
  public String getId() {
    return id;
  }

  public void setId(@NotNull String id) {
    this.id = id;
  }

  @NotNull
  public String getName() {
    return name;
  }

  public void setName(@NotNull String name) {
    this.name = name;
  }

  @NotNull
  public Contact getContact() {
    return contact;
  }

  public void setContact(@NotNull Contact contact) {
    this.contact = contact;
  }

  @NotNull
  public Location getLocation() {
    return location;
  }

  public void setLocation(@NotNull Location location) {
    this.location = location;
  }

  @NotNull
  public List<Category> getCategories() {
    return categories;
  }

  public void setCategories(@NotNull List<Category> categories) {
    this.categories = categories;
  }

  @NotNull
  public boolean isVerified() {
    return verified;
  }

  public void setVerified(@NotNull boolean verified) {
    this.verified = verified;
  }

  @NotNull
  public Stats getStats() {
    return stats;
  }

  public void setStats(@NotNull Stats stats) {
    this.stats = stats;
  }

  @Nullable
  public String getUrl() {
    return url;
  }

  public void setUrl(@Nullable String url) {
    this.url = url;
  }

  @Nullable
  public Menu getMenu() {
    return menu;
  }

  public void setMenu(@Nullable Menu menu) {
    this.menu = menu;
  }

  @Override
  public String toString() {
    return "Venue: " + getName();
  }
}




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