ProfileEditingResource extends Resource { public CallSpec<Void, HttpError> setCompanyAsPrimary(String companyId) { return Resource.<Void, HttpError>newPutSpec(api, "/v1/users/me/professional_experience/primary_company", false) .responseAs(Void.class) .queryParam("company_id", companyId) .build(); } ProfileEditingResource(XingApi api); CallSpec<XingUser, HttpError> updateGeneralInformation(); CallSpec<Void, HttpError> updateProfilePicture(PictureUpload pictureUpload); CallSpec<Void, HttpError> updateProfilePicture(RequestBody body); CallSpec<Void, HttpError> deleteProfilePicture(); @Experimental CallSpec<UploadProgress, HttpError> getPictureUploadProgress(); CallSpec<Void, HttpError> updatePrivateAddress(); CallSpec<Void, HttpError> updatePrivateAddress(Address address); CallSpec<Void, HttpError> updateBusinessAddress(); CallSpec<Void, HttpError> updateBusinessAddress(Address address); CallSpec<School, HttpError> addSchool(String name); CallSpec<School, HttpError> addSchool(School school); CallSpec<School, HttpError> updateSchool(String schoolId); CallSpec<Void, HttpError> deleteSchool(String schoolId); CallSpec<Void, HttpError> setSchoolAsPrimary(String schoolId); CallSpec<List<String>, HttpError> addQualification(String description); CallSpec<Company, HttpError> addCompany(String name, String title, FormOfEmployment formOfEmployment); CallSpec<Company, HttpError> updateCompany(String companyId); CallSpec<Void, HttpError> deleteCompany(String companyId); CallSpec<Void, HttpError> setCompanyAsPrimary(String companyId); @Experimental CallSpec<Void, HttpError> updateAwards(List<Award> awards); CallSpec<Void, HttpError> updateLanguageSkill(Language language, LanguageSkill skill); CallSpec<Void, HttpError> deleteLanguage(Language language); CallSpec<Void, HttpError> updateBirthDate(Calendar calendar); @Experimental CallSpec<Void, HttpError> updateWebProfile(WebProfile profile, List<String> urls); CallSpec<Void, HttpError> deleteWebProfile(WebProfile profile); @Experimental CallSpec<Void, HttpError> updateMessagingAccount(MessagingAccount account, String name); @Experimental CallSpec<Void, HttpError> deleteMessagingAccount(MessagingAccount account); @Experimental CallSpec<Void, HttpError> updateLegalInfo(String legalInfo); CallSpec<Void, HttpError> updateUsersProfileMessage(String userId, String message);  }
@Test public void setCompanyAsPrimary() throws Exception { testVoidSpec(resource.setCompanyAsPrimary("some_id")); }