Android Open Source - FoursquareWear N L Foursquare Client Parameters






From Project

Back to project page FoursquareWear.

License

The source code is released under:

GNU General Public License

If you think the Android project FoursquareWear 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.nlefler.nlfoursquare.Model;
//from w  w  w . j a va 2s  . c o m
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Nathan Lefler on 5/19/14.
 */
public class NLFoursquareClientParameters {
    private String _clientID;
    private String _clientSecret;
    private String _clientAPIVersion = "20140518";

    public NLFoursquareClientParameters(String clientID, String clientSecret) {
        _clientID = clientID;
        _clientSecret = clientSecret;
    }

    public String clientID() {
        return _clientID;
    }

    public String clientSecret() {
        return _clientSecret;
    }

    public boolean isValid() {
        return !_clientID.isEmpty() && !_clientSecret.isEmpty();
    }

    public Map<String, String> authenticationParameters() {
        if (!this.isValid()) {
            return new HashMap<>();
        }

        return new HashMap<String, String>() {{
            put("client_id", _clientID);
            put("client_secret", _clientSecret);
            put("v", _clientAPIVersion);
        }};
    }
}




Java Source Code List

com.nlefler.foursquarewear.FoursquareWearActivity.java
com.nlefler.nlfoursquare.Model.NLFoursquareClientParameters.java
com.nlefler.nlfoursquare.Model.FoursquareResponse.NLFoursquareResponseMetadata.java
com.nlefler.nlfoursquare.Model.FoursquareResponse.NLFoursquareResponse.java
com.nlefler.nlfoursquare.Model.User.NLFoursquareUser.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareCategory.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareLocation.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueBeenHere.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueContact.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueHereNow.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueHours.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueMayor.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueMenu.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenuePrice.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueSearchResponse.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueSpecial.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueSpecials.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueStats.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenueTips.java
com.nlefler.nlfoursquare.Model.Venue.NLFoursquareVenue.java
com.nlefler.nlfoursquare.Search.NLFoursquareVenueSearchIntent.java
com.nlefler.nlfoursquare.Search.NLFoursquareVenueSearchParametersBuilder.java
com.nlefler.nlfoursquare.Search.NLFoursquareVenueSearch.java