Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NotificationRpcApi implements IRpcApi
- {
- private final NotificationRpcApi.Uris uris;
- public NotificationRpcApi()
- {
- uris = new Uris();
- }
- @Override
- public RpcApiInfo info()
- {
- return new RpcApiInfo("Notification Service", "1.0.0", uris.BaseUri);
- }
- @Override
- public Map<String, IRpcCallHandler> getCallHandlers()
- {
- //...//
- return new HashMap<>();
- }
- public class Uris
- {
- private final String BaseUri = "/api/notification";
- private final String Notify = BaseUri + "/notify";
- private final String Subscribe = BaseUri + "/subscribe";
- private final String Unsubscribe = BaseUri + "/unsubscribe";
- private final String GetNotificationTypes = BaseUri + "/notificationTypes";
- public String BaseUri()
- {
- return BaseUri();
- }
- public String Notify()
- {
- return Notify;
- }
- public String Subscribe()
- {
- return Subscribe;
- }
- public String Unsubscribe()
- {
- return Unsubscribe;
- }
- public String GetNotificationType()
- {
- return GetNotificationTypes;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement