Class: Onlyfans::Models::SavedForLater::PostListResponse::Data::List

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

Defined Under Namespace

Classes: Entity

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, created_date_time: nil, entity: nil, publish_date_time: nil, type: nil) ⇒ Object

Parameters:



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 137

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

  # @!attribute created_date_time
  #
  #   @return [String, nil]
  optional :created_date_time, String, api_name: :createdDateTime

  # @!attribute entity
  #
  #   @return [Onlyfans::Models::SavedForLater::PostListResponse::Data::List::Entity, nil]
  optional :entity, -> { Onlyfans::Models::SavedForLater::PostListResponse::Data::List::Entity }

  # @!attribute publish_date_time
  #
  #   @return [String, nil]
  optional :publish_date_time, String, api_name: :publishDateTime, nil?: true

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

  # @!method initialize(id: nil, created_date_time: nil, entity: nil, publish_date_time: nil, type: nil)
  #   @param id [Integer]
  #   @param created_date_time [String]
  #   @param entity [Onlyfans::Models::SavedForLater::PostListResponse::Data::List::Entity]
  #   @param publish_date_time [String, nil]
  #   @param type [String]

  # @see Onlyfans::Models::SavedForLater::PostListResponse::Data::List#entity
  class Entity < Onlyfans::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [Integer, nil]
    optional :id, Integer

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

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

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

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

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

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

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

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

    # @!attribute posted_at
    #
    #   @return [String, nil]
    optional :posted_at, String, api_name: :postedAt

    # @!attribute posted_at_precise
    #
    #   @return [String, nil]
    optional :posted_at_precise, String, api_name: :postedAtPrecise

    # @!attribute raw_text
    #
    #   @return [String, nil]
    optional :raw_text, String, api_name: :rawText

    # @!attribute response_type
    #
    #   @return [String, nil]
    optional :response_type, String, api_name: :responseType

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

    # @!attribute tips_amount
    #
    #   @return [String, nil]
    optional :tips_amount, String, api_name: :tipsAmount

    # @!method initialize(id: nil, can_delete: nil, can_edit: nil, can_toggle_favorite: nil, can_view_media: nil, is_markdown_disabled: nil, is_media_ready: nil, is_opened: nil, is_published_with_period: nil, posted_at: nil, posted_at_precise: nil, raw_text: nil, response_type: nil, text: nil, tips_amount: nil)
    #   @param id [Integer]
    #   @param can_delete [Boolean]
    #   @param can_edit [Boolean]
    #   @param can_toggle_favorite [Boolean]
    #   @param can_view_media [Boolean]
    #   @param is_markdown_disabled [Boolean]
    #   @param is_media_ready [Boolean]
    #   @param is_opened [Boolean]
    #   @param is_published_with_period [Boolean]
    #   @param posted_at [String]
    #   @param posted_at_precise [String]
    #   @param raw_text [String]
    #   @param response_type [String]
    #   @param text [String]
    #   @param tips_amount [String]
  end
end

Instance Attribute Details

#created_date_timeString?

Returns:

  • (String, nil)


146
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 146

optional :created_date_time, String, api_name: :createdDateTime

#entityOnlyfans::Models::SavedForLater::PostListResponse::Data::List::Entity?



151
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 151

optional :entity, -> { Onlyfans::Models::SavedForLater::PostListResponse::Data::List::Entity }

#idInteger?

Returns:

  • (Integer, nil)


141
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 141

optional :id, Integer

#publish_date_timeString?

Returns:

  • (String, nil)


156
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 156

optional :publish_date_time, String, api_name: :publishDateTime, nil?: true

#typeString?

Returns:

  • (String, nil)


161
# File 'lib/onlyfans/models/saved_for_later/post_list_response.rb', line 161

optional :type, String