Class: Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/stories/highlight_retrieve_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)


312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 312

class Media < Onlyfans::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

  # @!attribute can_view
  #
  #   @return [Boolean, nil]
  optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView

  # @!attribute converted_to_video
  #
  #   @return [Boolean, nil]
  optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo

  # @!attribute created_at
  #
  #   @return [String, nil]
  optional :created_at, String, api_name: :createdAt

  # @!attribute duration
  #
  #   @return [Integer, nil]
  optional :duration, Integer

  # @!attribute files
  #
  #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files, nil]
  optional :files, -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files }

  # @!attribute has_custom_preview
  #
  #   @return [Boolean, nil]
  optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview

  # @!attribute has_error
  #
  #   @return [Boolean, nil]
  optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError

  # @!attribute is_ready
  #
  #   @return [Boolean, nil]
  optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady

  # @!attribute type
  #
  #   @return [String, nil]
  optional :type, String

  # @!attribute video_sources
  #
  #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::VideoSources, nil]
  optional :video_sources,
           -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::VideoSources },
           api_name: :videoSources

  # @!method 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, type: nil, video_sources: nil)
  #   @param id [Integer]
  #   @param can_view [Boolean]
  #   @param converted_to_video [Boolean]
  #   @param created_at [String]
  #   @param duration [Integer]
  #   @param files [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files]
  #   @param has_custom_preview [Boolean]
  #   @param has_error [Boolean]
  #   @param is_ready [Boolean]
  #   @param type [String]
  #   @param video_sources [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::VideoSources]

  # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media#files
  class Files < Onlyfans::Internal::Type::BaseModel
    # @!attribute full
    #
    #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Full, nil]
    optional :full,
             -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Full }

    # @!attribute preview
    #
    #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview, nil]
    optional :preview,
             -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview }

    # @!attribute square_preview
    #
    #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview, nil]
    optional :square_preview,
             -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview },
             api_name: :squarePreview

    # @!attribute thumb
    #
    #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Thumb, nil]
    optional :thumb,
             -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Thumb }

    # @!method initialize(full: nil, preview: nil, square_preview: nil, thumb: nil)
    #   @param full [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Full]
    #   @param preview [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview]
    #   @param square_preview [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview]
    #   @param thumb [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Thumb]

    # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files#full
    class Full < Onlyfans::Internal::Type::BaseModel
      # @!attribute height
      #
      #   @return [Integer, nil]
      optional :height, Integer

      # @!attribute size
      #
      #   @return [Integer, nil]
      optional :size, Integer

      # @!attribute sources
      #
      #   @return [Array<Object>, nil]
      optional :sources, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown]

      # @!attribute url
      #
      #   @return [String, nil]
      optional :url, String

      # @!attribute width
      #
      #   @return [Integer, nil]
      optional :width, Integer

      # @!method initialize(height: nil, size: nil, sources: nil, url: nil, width: nil)
      #   @param height [Integer]
      #   @param size [Integer]
      #   @param sources [Array<Object>]
      #   @param url [String]
      #   @param width [Integer]
    end

    # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files#preview
    class Preview < Onlyfans::Internal::Type::BaseModel
      # @!attribute height
      #
      #   @return [Integer, nil]
      optional :height, Integer

      # @!attribute size
      #
      #   @return [Integer, nil]
      optional :size, Integer

      # @!attribute sources
      #
      #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview::Sources, nil]
      optional :sources,
               -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview::Sources }

      # @!attribute url
      #
      #   @return [String, nil]
      optional :url, String

      # @!attribute width
      #
      #   @return [Integer, nil]
      optional :width, Integer

      # @!method initialize(height: nil, size: nil, sources: nil, url: nil, width: nil)
      #   @param height [Integer]
      #   @param size [Integer]
      #   @param sources [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview::Sources]
      #   @param url [String]
      #   @param width [Integer]

      # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview#sources
      class Sources < Onlyfans::Internal::Type::BaseModel
        # @!attribute w150
        #
        #   @return [String, nil]
        optional :w150, String

        # @!method initialize(w150: nil)
        #   @param w150 [String]
      end
    end

    # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files#square_preview
    class SquarePreview < Onlyfans::Internal::Type::BaseModel
      # @!attribute height
      #
      #   @return [Integer, nil]
      optional :height, Integer

      # @!attribute size
      #
      #   @return [Integer, nil]
      optional :size, Integer

      # @!attribute sources
      #
      #   @return [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview::Sources, nil]
      optional :sources,
               -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview::Sources }

      # @!attribute url
      #
      #   @return [String, nil]
      optional :url, String

      # @!attribute width
      #
      #   @return [Integer, nil]
      optional :width, Integer

      # @!method initialize(height: nil, size: nil, sources: nil, url: nil, width: nil)
      #   @param height [Integer]
      #   @param size [Integer]
      #   @param sources [Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview::Sources]
      #   @param url [String]
      #   @param width [Integer]

      # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::SquarePreview#sources
      class Sources < Onlyfans::Internal::Type::BaseModel
        # @!attribute w150
        #
        #   @return [String, nil]
        optional :w150, String

        # @!attribute w480
        #
        #   @return [String, nil]
        optional :w480, String

        # @!method initialize(w150: nil, w480: nil)
        #   @param w150 [String]
        #   @param w480 [String]
      end
    end

    # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files#thumb
    class Thumb < Onlyfans::Internal::Type::BaseModel
      # @!attribute height
      #
      #   @return [Integer, nil]
      optional :height, Integer

      # @!attribute size
      #
      #   @return [Integer, nil]
      optional :size, Integer

      # @!attribute url
      #
      #   @return [String, nil]
      optional :url, String

      # @!attribute width
      #
      #   @return [Integer, nil]
      optional :width, Integer

      # @!method initialize(height: nil, size: nil, url: nil, width: nil)
      #   @param height [Integer]
      #   @param size [Integer]
      #   @param url [String]
      #   @param width [Integer]
    end
  end

  # @see Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media#video_sources
  class VideoSources < Onlyfans::Internal::Type::BaseModel
    # @!attribute number_240
    #
    #   @return [String, nil]
    optional :number_240, String, api_name: :"240", nil?: true

    # @!attribute number_720
    #
    #   @return [String, nil]
    optional :number_720, String, api_name: :"720", nil?: true

    # @!method initialize(number_240: nil, number_720: nil)
    #   @param number_240 [String, nil]
    #   @param number_720 [String, nil]
  end
end

Instance Attribute Details

#can_viewBoolean?

Returns:

  • (Boolean, nil)


321
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 321

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

#converted_to_videoBoolean?

Returns:

  • (Boolean, nil)


326
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 326

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

#created_atString?

Returns:

  • (String, nil)


331
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 331

optional :created_at, String, api_name: :createdAt

#durationInteger?

Returns:

  • (Integer, nil)


336
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 336

optional :duration, Integer

#filesOnlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files?



341
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 341

optional :files, -> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files }

#has_custom_previewBoolean?

Returns:

  • (Boolean, nil)


346
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 346

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

#has_errorBoolean?

Returns:

  • (Boolean, nil)


351
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 351

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

#idInteger?

Returns:

  • (Integer, nil)


316
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 316

optional :id, Integer

#is_readyBoolean?

Returns:

  • (Boolean, nil)


356
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 356

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

#typeString?

Returns:

  • (String, nil)


361
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 361

optional :type, String

#video_sourcesOnlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::VideoSources?



366
367
368
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 366

optional :video_sources,
-> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::VideoSources },
api_name: :videoSources