|
Static Public Member Functions | |
| static proto void | RequestProfileSettings (notnull BackendCallback pCallback) |
| Fetch profile settings from the backend. This includes profile ID and disabled categories. | |
| static proto void | MarkAllNotificationsAsRead (notnull BackendCallback pCallback) |
| Mark all unread notifications as read. | |
| static proto void | MarkNotificationsAsRead (notnull BackendCallback pCallback, notnull array< int > aMarkAsReadIds) |
| Mark selected notifications as read. | |
| static proto void | DeleteAllNotifications (notnull BackendCallback pCallback) |
| Delete all notifications. | |
| static proto void | DeleteNotifications (notnull BackendCallback pCallback, notnull array< int > aDeleteIds) |
| Delete selected notifications. | |
| static proto void | UpdateSettings (notnull BackendCallback pCallback, notnull array< string > aDisableCategories) |
| Disable selected categories. | |
| static proto int | GetLastDeletedCount () |
| Returns how many notifications were deleted. | |
| static proto int | GetLastMarkedAsReadCount () |
| Returns how many notifications were marked as read. | |
| static proto int | GetDisabledCategories (out notnull array< string > outCategories) |
| Returns currently disabled categories. | |
| static proto void | RequestOffset (BackendCallback pCallback, int iOffset, bool bClearCache) |
| Will request load of data for offset from first item If data are already cached then callback is invoked immediately with this method and no request is sent to the backend. | |
| static proto void | SetFilters (NotificationCatalogueFilters pFilters) |
| Will set pointer to filters object for the catalogue. | |
| static proto NotificationCatalogueFilters | GetFilters () |
| Will set pointer to filters object for the catalogue. | |
| static proto bool | AppendOrderBy (EBackendCatalogueOrderDir orderDir, ENotificationCatalogueOrderBy orderBy) |
| Will append new order by field for sorting catalogue. | |
| static proto void | ClearOrderBy () |
| Will clear ordering of catalogue list. | |
| static proto int | GetPageCount () |
| Returns count of how many pages of data exists with current configuration of catalogue. | |
| static proto void | SetSize (int size) |
| Will set size of catalogue which determines how many items fit into single page/offset. | |
| static proto int | GetSize () |
| Returns currently set size of catalogue for pages/offsets. | |
| static proto void | RequestPage (BackendCallback pCallback, int uPage, bool bClearCache) |
| Will request load of data for specific page of catalogue. | |
| static proto void | RequestRefresh (BackendCallback pCallback) |
| Will request forced refresh of currently loaded page/offset. | |
| static proto int | GetPageNumber () |
| Returns index number of currently loaded page.Index 0 is first page. | |
| static proto int | GetTotalItemCount () |
| Return total count of how many items exists with current configuration of catalogue. | |
| static proto int | GetOffsetIndex () |
| Returns index number of currently loaded offset - index of first item in offset. | |
| static proto int | GetCurrentItemCount () |
| Returns count of items on currently loaded page / offset. | |
| static proto int | GetPageItems (out notnull array< NotificationInfo > outNotifications) |
| Get page content. | |
|
static |
Will append new order by field for sorting catalogue.
Once field is appended it cannot be reused until clear.
| VME | if field was already appended for sorting. |
|
static |
Will clear ordering of catalogue list.
|
static |
Delete all notifications.
|
static |
Delete selected notifications.
|
static |
Returns count of items on currently loaded page / offset.
|
static |
Returns currently disabled categories.
|
static |
Will set pointer to filters object for the catalogue.
Filters should be set only once at the beginning and then you can just modify local instance of filters. If set to null then no filters will be applied.
|
static |
Returns how many notifications were deleted.
|
static |
Returns how many notifications were marked as read.
|
static |
Returns index number of currently loaded offset - index of first item in offset.
Index 0 is the first item of catalogue. Use alongside RequestOffset() and GetTotalItemCount() to determine if you are at the end.
|
static |
Returns count of how many pages of data exists with current configuration of catalogue.
|
static |
Get page content.
|
static |
Returns index number of currently loaded page.Index 0 is first page.
Use alongside RequestPage() and GetPageCount() to determine if you are at the end.
|
static |
Returns currently set size of catalogue for pages/offsets.
|
static |
Return total count of how many items exists with current configuration of catalogue.
|
static |
Mark all unread notifications as read.
|
static |
Mark selected notifications as read.
|
static |
Will request load of data for offset from first item If data are already cached then callback is invoked immediately with this method and no request is sent to the backend.
Offset 0 represent first item. Int is casted into uint32.
|
static |
Will request load of data for specific page of catalogue.
If data are already cached then callback is invoked immediately with this method and no request is sent to the backend.
Pages are indexed from 0. Int is casted into uint32.
|
static |
Fetch profile settings from the backend. This includes profile ID and disabled categories.
|
static |
Will request forced refresh of currently loaded page/offset.
Items will be cleared from cache and created again from received data which might be possibly different.
|
static |
Will set pointer to filters object for the catalogue.
Filters should be set only once at the beginning and then you can just modify local instance of filters. If set to null then no filters will be applied.
|
static |
Will set size of catalogue which determines how many items fit into single page/offset.
|
static |
Disable selected categories.