Package chirp.service.representations

Examples of chirp.service.representations.PostRepresentation


  @GET
  @Path("{timestamp}")
  @Produces(MediaType.APPLICATION_JSON)
  public PostRepresentation getPost(@PathParam("username") String username, @PathParam("timestamp") String timestamp) {
    Post post = userRepository.getUser(username).getPost(new Timestamp(timestamp));
    return new PostRepresentation(post, false);
  }
View Full Code Here

TOP

Related Classes of chirp.service.representations.PostRepresentation

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.