Package org.fluxtream.core.mvc.models

Examples of org.fluxtream.core.mvc.models.DataUpdateDigestModel


            Guest guest = ApiHelper.getBuddyToAccess(guestService, coachee);
            if (guest==null)
                return Response.status(401).entity("You are no longer logged in").build();
            long guestId = guest.getId();
            List<DataUpdate> updates = dataUpdateService.getAllUpdatesSince(guestId, ISODateTimeFormat.dateTime().parseMillis(since));
            return Response.ok(gson.toJson(new DataUpdateDigestModel(updates,guestService,settingsService,ISODateTimeFormat.dateTime().parseMillis(since)))).build();
        }
        catch (Exception e){
            e.printStackTrace();
            return Response.serverError().entity("Failed to fetch updates").build();
        }
View Full Code Here

TOP

Related Classes of org.fluxtream.core.mvc.models.DataUpdateDigestModel

Copyright © 2018 www.massapicom. 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.