Class: Onlyfans::Models::Media::UploadGetStatusResponse::UnionMember2::Media

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

Overview

See Also:

Defined Under Namespace

Classes: Files

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(id: nil, can_view: nil, converted_to_video: nil, created_at: nil, duration: nil, files: nil, has_custom_preview: nil, has_error: nil, is_ready: nil, release_forms: nil, type: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_view (Boolean) (defaults to: nil)
  • converted_to_video (Boolean) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • files (Onlyfans::Models::Media::UploadGetStatusResponse::UnionMember2::Media::Files) (defaults to: nil)
  • has_custom_preview (Boolean) (defaults to: nil)
  • has_error (Boolean) (defaults to: nil)
  • is_ready (Boolean) (defaults to: nil)
  • release_forms (Array<Object>) (defaults to: nil)
  • type (String) (defaults to: nil)


# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 154

Instance Attribute Details

#can_viewBoolean?

Returns:

  • (Boolean, nil)


105
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 105

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

#converted_to_videoBoolean?

Returns:

  • (Boolean, nil)


110
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 110

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

#created_atString?

Returns:

  • (String, nil)


115
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 115

optional :created_at, String, api_name: :createdAt

#durationInteger?

Returns:

  • (Integer, nil)


120
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 120

optional :duration, Integer

#filesOnlyfans::Models::Media::UploadGetStatusResponse::UnionMember2::Media::Files?



125
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 125

optional :files, -> { Onlyfans::Models::Media::UploadGetStatusResponse::UnionMember2::Media::Files }

#has_custom_previewBoolean?

Returns:

  • (Boolean, nil)


130
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 130

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

#has_errorBoolean?

Returns:

  • (Boolean, nil)


135
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 135

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

#idInteger?

Returns:

  • (Integer, nil)


100
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 100

optional :id, Integer

#is_readyBoolean?

Returns:

  • (Boolean, nil)


140
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 140

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

#release_formsArray<Object>?

Returns:

  • (Array<Object>, nil)


145
146
147
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 145

optional :release_forms,
Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown],
api_name: :releaseForms

#typeString?

Returns:

  • (String, nil)


152
# File 'lib/onlyfans/models/media/upload_get_status_response.rb', line 152

optional :type, String