/** * Retrieve assigned tags by current user. * Retrieve all tags the current user has assigned to a contact. * Basically works the same as {@link ContactsResource#getAssignedTags(String, String)}, but already putting the user * id as ME. * * @param contactId ID of the users contact. */ public CallSpec<List<String>, HttpError> getOwnAssignedTags(String contactId) { return getAssignedTags(ME, contactId); }
/** * Returns the recent profile message for the authorizing {@linkplain XingUser user}. * * @return A {@linkplain CallSpec callSpec} object ready to execute the request. * * @see <a href="https://dev.xing.com/docs/get/users/:user_id/profile_message">'Get user profile message' resource * page</a> */ public CallSpec<ProfileMessage, HttpError> getOwnProfileMessage() { return getUserProfileMessage(ME); }
/** * Returns the legal information for the authorizing {@linkplain XingUser user}. * * @return A {@linkplain CallSpec callSpec} object ready to execute the request. * * @see <a href="https://dev.xing.com/docs/get/users/:user_id/legal_information">'Get legal information of a user' * resource page</a> */ public CallSpec<String, HttpError> getOwnLegalInformation() { return getUserLegalInformation(ME); } }
@Test public void blockRecommendation() throws Exception { testVoidSpec(resource.blockRecommendation("some_id")); } }
@Test public void deleteOwnBookmark() throws Exception { testVoidSpec(resource.deleteOwnBookmark("some_di")); } }
@Test public void updateUsersProfileMessage() throws Exception { testVoidSpec(resource.updateUsersProfileMessage("id", "message")); } }
@Test public void likePost() throws Exception { testVoidSpec(resource.likePost("123")); }
@Test public void deleteCommentOfPost() throws Exception { testVoidSpec(resource.deleteCommentOfPost("1123")); }
@Test public void unlikeComment() throws Exception { testVoidSpec(resource.unlikeComment("1235")); }
@Test public void leaveGroup() throws Exception { testVoidSpec(resource.leaveGroup("12345")); }
@Test public void createProfileVisits() throws Exception { testVoidSpec(resource.createProfileVisits("some_id")); }
@Test public void revokeContactRequest() throws Exception { testVoidSpec(resource.revokeContactRequest("user_id", "sender_id")); }
@Test public void setCompanyAsPrimary() throws Exception { testVoidSpec(resource.setCompanyAsPrimary("some_id")); }
@Test public void deleteMessagingAccount() throws Exception { testVoidSpec(resource.deleteMessagingAccount(MessagingAccount.SKYPE)); }
@Test public void likeComment() throws Exception { testVoidSpec(resource.likeComment("1235")); }
@Override public Resource create(XingApi api) { return new MessagesResource(api); } };
@Override public Resource create(XingApi api) { return new ProfileVisitsResource(api); } };
@Override public Resource create(XingApi api) { return new RecommendationsResource(api); } };
@Override public Resource create(XingApi api) { return new UserProfilesResource(api); } };
@Override public Resource create(XingApi api) { return new JobsResource(api); } };