module BacklogKit::Client::Notification
Methods for the Notification
API
Public Instance Methods
get_notification_count(params = {})
click to toggle source
Get number of own notifications
@param params [Hash] Request parameters @return [BacklogKit::Response] Number of notifications
# File lib/backlog_kit/client/notification.rb, line 17 def get_notification_count(params = {}) get('notifications/count', params) end
get_notifications(params = {})
click to toggle source
Get list of own notifications
@param params [Hash] Request parameters @return [BacklogKit::Response] List of notifications
# File lib/backlog_kit/client/notification.rb, line 9 def get_notifications(params = {}) get('notifications', params) end
mark_as_read_notification(notification_id)
click to toggle source
Mark a notification as read
@param notification_id [Integer, String] Notification
id @return [BacklogKit::Response] No content response
# File lib/backlog_kit/client/notification.rb, line 32 def mark_as_read_notification(notification_id) post("notifications/#{notification_id}/markAsRead") end
reset_unread_notification_count()
click to toggle source
Reset unread notification count
@return [BacklogKit::Response] Number of notifications
# File lib/backlog_kit/client/notification.rb, line 24 def reset_unread_notification_count post('notifications/markAsRead') end