Class: Onlyfans::Resources::Chats::MarkAllAsRead
- Inherits:
-
Object
- Object
- Onlyfans::Resources::Chats::MarkAllAsRead
- Defined in:
- lib/onlyfans/resources/chats/mark_all_as_read.rb
Instance Method Summary collapse
-
#all(account, request_options: {}) ⇒ Onlyfans::Models::Chats::MarkAllAsReadAllResponse
Mark all chats as read.
-
#initialize(client:) ⇒ MarkAllAsRead
constructor
private
A new instance of MarkAllAsRead.
Constructor Details
#initialize(client:) ⇒ MarkAllAsRead
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MarkAllAsRead.
30 31 32 |
# File 'lib/onlyfans/resources/chats/mark_all_as_read.rb', line 30 def initialize(client:) @client = client end |
Instance Method Details
#all(account, request_options: {}) ⇒ Onlyfans::Models::Chats::MarkAllAsReadAllResponse
Mark all chats as read.
18 19 20 21 22 23 24 25 |
# File 'lib/onlyfans/resources/chats/mark_all_as_read.rb', line 18 def all(account, params = {}) @client.request( method: :post, path: ["api/%1$s/chats/mark-as-read", account], model: Onlyfans::Models::Chats::MarkAllAsReadAllResponse, options: params[:request_options] ) end |