com.github.muratkaragozgil.netmera4j.service.UserService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netmera4j Show documentation
Show all versions of netmera4j Show documentation
A pleasant and complete Java wrapper for the Netmera Rest Api!
package com.github.muratkaragozgil.netmera4j.service;
import com.github.muratkaragozgil.netmera4j.model.device.*;
import com.github.muratkaragozgil.netmera4j.request.device.*;
import com.github.muratkaragozgil.netmera4j.response.GetDeviceTokensResponse;
import com.github.muratkaragozgil.netmera4j.response.GetProfileAttributesResponse;
import com.github.muratkaragozgil.netmera4j.response.GetUserDevicesResponse;
import retrofit2.Call;
import retrofit2.http.*;
import java.util.List;
/**
* @author Murat Karagözgil
*/
public interface UserService {
@POST("/rest/3.0/registerUsers")
Call createNewDevices(@Body List deviceList);
@POST("/rest/3.0/disablePush")
Call disablePushWithExternalId(@Body DisablePushRequestWithExternalId disablePushRequestWithExternalId);
@POST("/rest/3.0/disablePush")
Call disablePushWithDeviceToken(@Body DisablePushRequestWithToken disablePushRequestWithToken);
@POST("/rest/3.0/enablePush")
Call enablePushWithExternalId(@Body EnablePushRequestWithExternalId disablePushRequestWithExternalId);
@POST("/rest/3.0/enablePush")
Call enablePushWithDeviceToken(@Body EnablePushRequestWithToken disablePushRequestWithToken);
@POST("/rest/3.0/tagUsers")
Call addTagToUsers(@Body AddTagToUsersRequest addTagToUsersRequest);
@POST("/rest/3.0/tagUsers")
Call removeTagFromUsers(@Body RemoveTagFromUsersRequest removeTagFromUsersRequest);
@POST("/rest/3.0/setCategoryPreferences")
Call setCategoryPreferences(@Body List categories);
@POST("/rest/3.0/setProfileAttributes")
Call setProfileAttributes(@Body List userAndProfileAttributeMaps);
@POST("/rest/3.0/unsetProfileAttributes")
Call unsetProfileAttributes(@Body List userAndProfileAttributeLists);
@GET("/rest/3.0/getProfileAttributes")
Call getProfileAttributes(@Query("extId") String externalId);
@POST("/rest/3.0/pushProfileAttributes")
Call pushProfileAttributesToUser(@Body List userAndProfileAttributeLists);
@POST("/rest/3.0/pullProfileAttributes")
Call pullProfileAttributesToUser(@Body List userAndProfileAttributeLists);
@POST("/rest/3.0/deleteProfileAttributeValue")
Call deleteProfileAttributeFromAllUsers(@Body DeleteProfileAttributeFromAllUsersRequest deleteProfileAttributeFromAllUsersRequest);
@GET("/rest/3.0/getDevices")
Call getUserDevices(@Query("extId") String externalId, @Query("pushPermitted") Boolean pushPermitted);
@GET("/rest/3.0/getDeviceTokens")
Call getDeviceTokens(@Query("max") Integer max, @Query("offset") Integer offSet);
@GET
Call getDeviceTokens(@Url String url);
}