-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT]: implement builders and enums for subscription queries #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT]: implement builders and enums for subscription queries #74
Conversation
* refactor: delete old subscription methods from EventApi * refactor: delete old subscription methods from InboxApi * refactor: delete old subscription methods from KvdbApi * refactor: delete old subscription methods from StoreApi * refactor: delete old subscription methods from ThreadApi * feat: add new subscription methods for EventApi * feat: add new subscription methods for InboxApi * feat: add new subscription methods for KvdbApi * feat: add new subscription methods for StoreApi * feat: add new subscription methods for StoreApi * feat: declare thrown exceptions in methods * chore: add exception descriptions to docs and fix typos * feat: change native buildSubscriptionQuery method parameter types in ThreadApi * feat: change native buildSubscriptionQuery method parameter types in StoreApi * feat: change native buildSubscriptionQuery method parameter types in InboxApi * feat: change native buildSubscriptionQuery method parameter types in KvdbApi * fix: use pointer access for JniContextUtils methods * feat: change native buildSubscriptionQuery method parameter types in EventApi * chore: rename custom event selector type * chore: change descriptions in null checks * chore: change descriptions in null checks * chore: cast long value to enum instead of using special function * fix: use correct ctx method * chore: remove syncFile method * chore: clean up code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation for all enums (description, group and catergory)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modify descriptions in EventTypes and EventSelectors enums according to notes in InboxEventType and SelectorType
...ava/com/simplito/java/privmx_endpoint/model/events/eventSelectorTypes/EventSelectorType.java
Show resolved
Hide resolved
...point/src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/EventType.java
Show resolved
Hide resolved
...om/simplito/java/privmx_endpoint/model/events/eventSelectorTypes/InboxEventSelectorType.java
Outdated
Show resolved
Hide resolved
...om/simplito/java/privmx_endpoint/model/events/eventSelectorTypes/InboxEventSelectorType.java
Show resolved
Hide resolved
...om/simplito/java/privmx_endpoint/model/events/eventSelectorTypes/InboxEventSelectorType.java
Show resolved
Hide resolved
.../src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/InboxEventType.java
Show resolved
Hide resolved
.../src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/InboxEventType.java
Show resolved
Hide resolved
.../src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/InboxEventType.java
Show resolved
Hide resolved
.../src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/InboxEventType.java
Show resolved
Hide resolved
.../src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/InboxEventType.java
Outdated
Show resolved
Hide resolved
* feat: add new enum value to containers event types * feat: delete entryId value from kvdb event selector type
…ventSelectorType interfaces
…event types enums
…ums-for-subscription-queries
package com.simplito.java.privmx_endpoint.model.events.eventSelectorTypes; | ||
|
||
/** | ||
* Specifies the type of identifier used to select an custom event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the type of identifier used to select a custom event.
|
||
|
||
/** | ||
* Specifies the type of identifier used to select an KVDB event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the type of identifier used to select a KVDB event.
package com.simplito.java.privmx_endpoint.model.events.eventSelectorTypes; | ||
|
||
/** | ||
* Specifies the type of identifier used to select an store event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the type of identifier used to select a store event.
package com.simplito.java.privmx_endpoint.model.events.eventSelectorTypes; | ||
|
||
/** | ||
* Specifies the type of identifier used to select an thread event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the type of identifier used to select a thread event.
|
||
/** | ||
* Subscribes for events in given Inbox. | ||
* Unsubscribe from events for the given subscriptionId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsubscribe from events with the given subscriptionId.
* Generate subscription Query for the KVDB events. | ||
* | ||
* @param kvdbId ID of the KVDB to unsubscribe | ||
* @param eventType type of event which you listen for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type of event you listen for
|
||
/** | ||
* Unsubscribes from the Store module main events. | ||
* Unsubscribe from events for the given subscriptionId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsubscribe from events with the given subscriptionId.
* Generate subscription Query for the Store events. | ||
* | ||
* @param storeId ID of the {@code Store} to unsubscribe | ||
* @param eventType type of event which you listen for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type of event you listen for
|
||
/** | ||
* Unsubscribes from the Thread module main events. | ||
* Unsubscribe from events for the given subscriptionId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsubscribe from events with the given subscriptionId.
* Generate subscription Query for the Thread events. | ||
* | ||
* @param threadId ID of the Thread to unsubscribe | ||
* @param eventType type of event which you listen for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type of event you listen for
Description
CHANGES
New classes
StoreEventType
ThreadEventType
InboxEventType
KvdbEventType
EventSelectorType
StoreEventSelectorType
ThreadEventSelectorType
InboxEventSelectorType
KvdbEventSelectorType
CustomEventSelectorType