Examples of NewPostFoundEvent


Examples of net.pterodactylus.sone.core.event.NewPostFoundEvent

          continue;
        }
        if (newPost.getTime() < getSoneFollowingTime(sone)) {
          newPost.setKnown(true);
        } else if (!newPost.isKnown()) {
          eventBus.post(new NewPostFoundEvent(newPost));
        }
      }
      /* store posts. */
      database.storePosts(sone, sone.getPosts());
      if (!soneRescueMode) {
View Full Code Here

Examples of net.pterodactylus.sone.core.event.NewPostFoundEvent

    if (recipient.isPresent()) {
      postBuilder.to(recipient.get().getId());
    }
    final Post post = postBuilder.build();
    database.storePost(post);
    eventBus.post(new NewPostFoundEvent(post));
    sone.addPost(post);
    touchConfiguration();
    localElementTicker.schedule(new Runnable() {

      /**
 
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.