Examples of FoursquareVenue


Examples of org.fluxtream.core.domain.metadata.FoursquareVenue

        // needs invistigating...
        CacheControl cc = new CacheControl();
        // cache for a month
        cc.setNoCache(false);
        cc.setMaxAge(86400*31);
        final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(venueId);
        Response.ResponseBuilder builder = Response.ok(foursquareVenue);
        builder.cacheControl(cc);
        return builder.build();
    }
View Full Code Here

Examples of org.fluxtream.core.domain.metadata.FoursquareVenue

                else {
                    categories = new JSONArray();
                    JSONObject categoriesJson = (JSONObject)categoriesObject;
                    categories.add(categoriesJson);
                }
                FoursquareVenue venue = new FoursquareVenue();

                String venueName = response.getString("name");
                String canonicalUrl = response.getString("canonicalUrl");
                venue.name = venueName;
                venue.canonicalUrl = canonicalUrl;
View Full Code Here

Examples of org.fluxtream.core.domain.metadata.FoursquareVenue

            return homeBaseUrl+"images/moves/unknown.png";
        final Object[] singleResult = (Object[])l.get(0);
        String type = (String) singleResult[0];
        if (type.equals("foursquare")) {
            String foursquareId = (String) singleResult[1];
            final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(foursquareId);
            return foursquareVenue.categoryIconUrlPrefix + "bg_32" + foursquareVenue.categoryIconUrlSuffix;
        } else {
            return homeBaseUrl+"images/moves/" + type + ".png";
        }
    }
View Full Code Here

Examples of org.fluxtream.core.domain.metadata.FoursquareVenue

            response.sendError(404);
        final Object[] singleResult = (Object[])l.get(0);
        String type = (String) singleResult[0];
        if (type.equals("foursquare")) {
            String foursquareId = (String) singleResult[1];
            final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(foursquareId);
            response.sendRedirect(foursquareVenue.categoryIconUrlPrefix + "bg_32" + foursquareVenue.categoryIconUrlSuffix);
        } else {
            String homeBaseUrl = env.get("homeBaseUrl");
            response.sendRedirect(homeBaseUrl+"/images/moves/" + type + ".png");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.