Class: Onlyfans::Models::NotificationListParams

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

Overview

Defined Under Namespace

Modules: SkipUsers, Type

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:, from_id: nil, limit: nil, skip_users: nil, type: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Onlyfans::Models::NotificationListParams for more details.

Parameters:



# File 'lib/onlyfans/models/notification_list_params.rb', line 40

Instance Attribute Details

#accountString

Returns:

  • (String)


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

required :account, String

#from_idInteger?

Used for pagination. This value should be the ID of the previous response’s last notification.

Returns:

  • (Integer, nil)


20
# File 'lib/onlyfans/models/notification_list_params.rb', line 20

optional :from_id, Integer

#limitInteger?

The number of notifications. Default ‘10`

Returns:

  • (Integer, nil)


26
# File 'lib/onlyfans/models/notification_list_params.rb', line 26

optional :limit, Integer

#skip_usersSymbol, ...

Whether to skip user details. Default ‘all`



32
# File 'lib/onlyfans/models/notification_list_params.rb', line 32

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

#typeSymbol, ...

Filter notifications by a specific type



38
# File 'lib/onlyfans/models/notification_list_params.rb', line 38

optional :type, enum: -> { Onlyfans::NotificationListParams::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/onlyfans/models/notification_list_params.rb', line 63