Class: Onlyfans::Models::ChatListMediaResponse::Data::List::Media

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/chat_list_media_response.rb

Defined Under Namespace

Classes: Files, VideoSources

Instance Attribute Summary collapse

Instance Method Summary collapse

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(height: nil, size: nil, url: nil, width: nil) ⇒ Object

Parameters:

  • height (Integer) (defaults to: nil)
  • size (Integer) (defaults to: nil)
  • url (String) (defaults to: nil)
  • width (Integer) (defaults to: nil)


# File 'lib/onlyfans/models/chat_list_media_response.rb', line 399

Instance Attribute Details

#can_viewBoolean?

Returns:

  • (Boolean, nil)


350
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 350

optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView

#converted_to_videoBoolean?

Returns:

  • (Boolean, nil)


355
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 355

optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo

#created_atString?

Returns:

  • (String, nil)


360
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 360

optional :created_at, String, api_name: :createdAt

#durationInteger?

Returns:

  • (Integer, nil)


365
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 365

optional :duration, Integer

#filesOnlyfans::Models::ChatListMediaResponse::Data::List::Media::Files?



370
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 370

optional :files, -> { Onlyfans::Models::ChatListMediaResponse::Data::List::Media::Files }

#has_custom_previewBoolean?

Returns:

  • (Boolean, nil)


375
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 375

optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview

#has_errorBoolean?

Returns:

  • (Boolean, nil)


380
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 380

optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError

#idInteger?

Returns:

  • (Integer, nil)


345
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 345

optional :id, Integer

#is_readyBoolean?

Returns:

  • (Boolean, nil)


385
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 385

optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady

#typeString?

Returns:

  • (String, nil)


390
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 390

optional :type, String

#video_sourcesOnlyfans::Models::ChatListMediaResponse::Data::List::Media::VideoSources?



395
396
397
# File 'lib/onlyfans/models/chat_list_media_response.rb', line 395

optional :video_sources,
-> { Onlyfans::Models::ChatListMediaResponse::Data::List::Media::VideoSources },
api_name: :videoSources