Class: Onlyfans::Models::ChatListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/onlyfans/models/chat_list_params.rb

Overview

Defined Under Namespace

Modules: Filter, Order, SkipUsers

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(account:, filter: nil, limit: nil, offset: nil, order: nil, query: nil, skip_users: nil, request_options: {}) ⇒ Object

Parameters:

  • account (String)
  • filter (Symbol, Onlyfans::Models::ChatListParams::Filter) (defaults to: nil)

    Optionally, filter the chats by type.

  • limit (String) (defaults to: nil)

    Number of chats to return (1 - 100). Default = 10

  • offset (String) (defaults to: nil)

    Number of chats to skip for pagination

  • order (Symbol, Onlyfans::Models::ChatListParams::Order) (defaults to: nil)

    Sort order for chats (recent or old). Default = recent

  • query (String) (defaults to: nil)

    Search query to filter chats

  • skip_users (Symbol, Onlyfans::Models::ChatListParams::SkipUsers) (defaults to: nil)

    Whether to skip user details in response (all or none). Default = all

  • request_options (Onlyfans::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/onlyfans/models/chat_list_params.rb', line 51

Instance Attribute Details

#accountString

Returns:

  • (String)


13
# File 'lib/onlyfans/models/chat_list_params.rb', line 13

required :account, String

#filterSymbol, ...

Optionally, filter the chats by type.



19
# File 'lib/onlyfans/models/chat_list_params.rb', line 19

optional :filter, enum: -> { Onlyfans::ChatListParams::Filter }

#limitString?

Number of chats to return (1 - 100). Default = 10

Returns:

  • (String, nil)


25
# File 'lib/onlyfans/models/chat_list_params.rb', line 25

optional :limit, String

#offsetString?

Number of chats to skip for pagination

Returns:

  • (String, nil)


31
# File 'lib/onlyfans/models/chat_list_params.rb', line 31

optional :offset, String

#orderSymbol, ...

Sort order for chats (recent or old). Default = recent

Returns:



37
# File 'lib/onlyfans/models/chat_list_params.rb', line 37

optional :order, enum: -> { Onlyfans::ChatListParams::Order }

#queryString?

Search query to filter chats

Returns:

  • (String, nil)


43
# File 'lib/onlyfans/models/chat_list_params.rb', line 43

optional :query, String

#skip_usersSymbol, ...

Whether to skip user details in response (all or none). Default = all



49
# File 'lib/onlyfans/models/chat_list_params.rb', line 49

optional :skip_users, enum: -> { Onlyfans::ChatListParams::SkipUsers }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/onlyfans/models/chat_list_params.rb', line 78