Class LikeClient
java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.LikeClient
Likes client: the operations of the service that also notify the owner of the post. The raw store operations without
notifications are in
LibClient.-
Field Summary
Fields inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
SG3_BRIDGE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.gcube.portal.databook.shared.Like>getLikesByPostId(String postId) Likes of a post.The user of the token likes a post (the owner of the post is notified).The user of the token removes a like.Methods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
Constructor Details
-
LikeClient
- Throws:
Exception
-
-
Method Details
-
getLikesByPostId
Likes of a post.- Parameters:
postId- the key of the post
-
like
The user of the token likes a post (the owner of the post is notified).- Returns:
- true if the like was stored
-
unlike
The user of the token removes a like.- Parameters:
likeId- the key of the like (seegetLikesByPostId(java.lang.String))- Returns:
- true if the like was removed
-