Examples of posts()


Examples of se.caboo.beast.model.Forum.posts()

    for (Topic topic : topics) {
      System.out.println("Application.Application:   " + topic.title() + " created " + topic.createdAt());
    }

    System.out.println("Application.Application: Fetching posts for forum");
    NSArray<Post> forumPosts = singleForum.posts();
    for (Post post : forumPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }

    System.out.println("Application.Application: Refetching single topic w/ PK");
View Full Code Here

Examples of se.caboo.beast.model.Topic.posts()

    System.out.println("Application.Application: Fetching topic user");
    User user = singleTopic.user();
    System.out.println("Application.Application:   " + user.displayName());

    System.out.println("Application.Application: Fetching posts for topic (composite pk, which is kind of interesting)");
    NSArray<Post> topicPosts = singleTopic.posts();
    for (Post post : topicPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }
   
    Post randomPost = topicPosts.lastObject();
View Full Code Here

Examples of se.caboo.beast.model.User.posts()

    System.out.println("Application.Application: Fetch author of post");
    User postedByUser = randomPost.user();
    System.out.println("Application.Application:   " + postedByUser.displayName());
   
    System.out.println("Application.Application: Fetching posts by author");
    NSArray<Post> userPosts = postedByUser.posts();
    for (Post post : userPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }
   
    System.out.println("Application.Application: This doesn't start an app right now -- it just runs a bunch of example fetches.");
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.