Package org.fluxtream.core.mvc.models

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


        final Guest guest = guestService.getGuest(username);
        final List<Guest> coaches = buddiesService.getTrustedBuddies(AuthHelper.getGuestId());
        if (coaches.contains(guest))
            return Response.status(Response.Status.BAD_REQUEST).entity(username + " is already in you coaching buddies list").build();
        if (guest!=null) {
            return Response.ok(new GuestModel(guest)).build();
        } else
            return Responses.notFound().entity("No Such User: " + username + ". Please try again.").build();
    }
View Full Code Here


    }

    List<GuestModel> toGuestModels(List<Guest> guests) {
        List<GuestModel> models = new ArrayList<GuestModel>();
        for (Guest guest : guests) {
            models.add(new GuestModel(guest));
        }
        return models;
    }
View Full Code Here

TOP

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

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.