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

public class LikeClient extends BaseClient
Likes client: the operations of the service that also notify the owner of the post. The raw store operations without notifications are in LibClient.
  • Constructor Details

  • Method Details

    • getLikesByPostId

      public List<org.gcube.portal.databook.shared.Like> getLikesByPostId(String postId)
      Likes of a post.
      Parameters:
      postId - the key of the post
    • like

      public Boolean like(String postId)
      The user of the token likes a post (the owner of the post is notified).
      Returns:
      true if the like was stored
    • unlike

      public Boolean unlike(String postId, String likeId)
      The user of the token removes a like.
      Parameters:
      likeId - the key of the like (see getLikesByPostId(java.lang.String))
      Returns:
      true if the like was removed