Class: Onlyfans::Resources::Chats::MarkAllAsRead

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyfans/resources/chats/mark_all_as_read.rb

Instance Method Summary collapse

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.

Parameters:



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.

Parameters:

Returns:

See Also:



18
19
20
21
22
23
24
25
# File 'lib/onlyfans/resources/chats/mark_all_as_read.rb', line 18

def all(, params = {})
  @client.request(
    method: :post,
    path: ["api/%1$s/chats/mark-as-read", ],
    model: Onlyfans::Models::Chats::MarkAllAsReadAllResponse,
    options: params[:request_options]
  )
end