lib/phrase/api/notifications_api.rb in phrase-2.8.3 vs lib/phrase/api/notifications_api.rb in phrase-2.8.7
- old
+ new
@@ -12,11 +12,11 @@
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
# @option opts [Boolean] :unseen Include only unseen notifications
- # @return [Array<Object>]
+ # @return [Array<Notification>]
def notifications_list(opts = {})
data, _status_code, _headers = notifications_list_with_http_info(opts)
data
end
@@ -25,11 +25,11 @@
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
# @option opts [Boolean] :unseen Include only unseen notifications
- # @return [Array<(Response<(Array<Object>)>, Integer, Hash)>] Response<(Array<Object>)> data, response status code and response headers
+ # @return [Array<(Response<(Array<Notification>)>, Integer, Hash)>] Response<(Array<Notification>)> data, response status code and response headers
def notifications_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_list ...'
end
# resource path
@@ -52,11 +52,11 @@
# http body (model)
post_body = opts[:body]
# return_type
- return_type = opts[:return_type] || 'Array<Object>'
+ return_type = opts[:return_type] || 'Array<Notification>'
# auth_names
auth_names = opts[:auth_names] || ['Basic', 'Token']
new_options = opts.merge(
@@ -78,21 +78,21 @@
# Mark all notifications as read
# Mark all notifications of the current user as read
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
- # @return [Array<Object>]
+ # @return [Array<Notification>]
def notifications_mark_all_as_read(opts = {})
data, _status_code, _headers = notifications_mark_all_as_read_with_http_info(opts)
data
end
# Mark all notifications as read
# Mark all notifications of the current user as read
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
- # @return [Array<(Response<(Array<Object>)>, Integer, Hash)>] Response<(Array<Object>)> data, response status code and response headers
+ # @return [Array<(Response<(Array<Notification>)>, Integer, Hash)>] Response<(Array<Notification>)> data, response status code and response headers
def notifications_mark_all_as_read_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_mark_all_as_read ...'
end
# resource path
@@ -112,10 +112,10 @@
# http body (model)
post_body = opts[:body]
# return_type
- return_type = opts[:return_type] || 'Array<Object>'
+ return_type = opts[:return_type] || 'Array<Notification>'
# auth_names
auth_names = opts[:auth_names] || ['Basic', 'Token']
new_options = opts.merge(