All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.mobile.services.client.push.Constants Maven / Gradle / Ivy

The newest version!
package com.sap.mobile.services.client.push;

interface Constants {
	/**
	 * Mobile services push root path
	 */
	String ROOT_PATH = "/mobileservices/push";

	interface Backend {

		interface V2 {
			interface Paths {
				/**
				 * Root path of mobile services push backend services v2.
				 */
				String ROOT_PATH = Constants.ROOT_PATH + "/v2/backend";

				/**
				 * Push to application v2 path.
				 */
				String PUSH_TO_APPLICATION_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/notifications";

				String PUSH_TO_USER_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/users/{userId}/devices/{deviceId}/notifications";

				String PUSH_TO_GROUP_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/groups/{group}/notifications";

				String PUSH_TO_USERS_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/notifications/users";

				String BULK_PUSH_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/notifications/bulk";

				String PUSH_TO_TOPIC_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/applications/{applicationId}/topics/notifications";

				String PUSH_TO_CAPABILITY_PATH = Constants.Backend.V2.Paths.ROOT_PATH
						+ "/capabilities/{capabilityName}/notifications";

				String GET_NOTIFICATION_STATUS = Constants.Backend.V1.Paths.GET_NOTIFICATION_STATUS;

				String GET_LOCALIZATIONS = Constants.Backend.V2.Paths.ROOT_PATH + "/localizations";

				String GET_REGISTRATIONS = Constants.Backend.V2.Paths.ROOT_PATH + "/registrations";

				String GET_REGISTRATION = Constants.Backend.V2.Paths.ROOT_PATH+ "/registrations/{registrationId}";
			}

			interface Params {
				String GET_LOCALIZATIONS_USER_PARAM = "usernames";

				String GET_REGISTRATIONS_USERNAME_PARAM = "username";

				String GET_REGISTRATIONS_GROUP_PARAM = "pushGroup";
			}
		}

		interface V1 {
			interface Paths {
				/**
				 * Root path of mobile services puch backend services v2.
				 */
				String ROOT_PATH = Constants.ROOT_PATH + "/v1/backend";

				String GET_NOTIFICATION_STATUS = Constants.Backend.V1.Paths.ROOT_PATH
						+ "/notifications/{notificationId}/status";
			}
		}

	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy