java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.PostClient

public class PostClient extends BaseClient
Posts client.
Author:
Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), Ahmed Ibrahim at ISTI-CNR (ahmed.ibrahim@isti.cnr.it)
  • Constructor Details

  • Method Details

    • getUserPostsSinceDate

      public List<org.gcube.portal.databook.shared.Post> getUserPostsSinceDate(long timeInMillis)
      Get posts since date
      Returns:
    • getAllUserPosts

      public List<org.gcube.portal.databook.shared.Post> getAllUserPosts()
      Get all posts
      Returns:
    • getUserPostsQuantity

      public List<org.gcube.portal.databook.shared.Post> getUserPostsQuantity(int quantity)
      Get posts quantity
      Returns:
    • writeUserPost

      public org.gcube.portal.databook.shared.Post writeUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
      Write post
      Returns:
    • getAllApplicationPosts

      public List<org.gcube.portal.databook.shared.Post> getAllApplicationPosts()
      Get posts application (token set must belong to the application)
      Returns:
    • writeApplicationPost

      public org.gcube.portal.databook.shared.Post writeApplicationPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
      Write post application (token set must belong to the application)
      Returns:
    • getPostsVRE

      public List<org.gcube.portal.databook.shared.Feed> getPostsVRE()
      Deprecated.
      Use getVREPosts() instead. Get posts vre
      Returns:
    • getVREPosts

      public List<org.gcube.portal.databook.shared.Post> getVREPosts()
      Get posts vre
      Returns:
    • getHashtagPosts

      public List<org.gcube.portal.databook.shared.Post> getHashtagPosts(String hashtag) throws UnsupportedEncodingException
      Get posts hashtag
      Returns:
      Throws:
      UnsupportedEncodingException
    • getUserLikedPost

      public List<org.gcube.portal.databook.shared.Post> getUserLikedPost()
      Get liked posts
      Returns:
    • getUserLikedPostIds

      public List<String> getUserLikedPostIds()
      Get liked posts ids
      Returns: