Class: Onlyfans::Models::SavedForLater::MessageListResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/saved_for_later/message_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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
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
# File 'lib/onlyfans/models/saved_for_later/message_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::MessageListResponse::Data::List::Entity, nil]
  optional :entity, -> { Onlyfans::Models::SavedForLater::MessageListResponse::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::MessageListResponse::Data::List::Entity]
  #   @param publish_date_time [String, nil]
  #   @param type [String]

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

    # @!attribute cancel_seconds
    #
    #   @return [Integer, nil]
    optional :cancel_seconds, Integer, api_name: :cancelSeconds

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

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

    # @!attribute changed_at
    #
    #   @return [String, nil]
    optional :changed_at, String, api_name: :changedAt

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

    # @!attribute giphy_id
    #
    #   @return [String, nil]
    optional :giphy_id, String, api_name: :giphyId, nil?: true

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

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

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

    # @!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_new
    #
    #   @return [Boolean, nil]
    optional :is_new, Onlyfans::Internal::Type::Boolean, api_name: :isNew

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

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

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

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

    # @!attribute media_count
    #
    #   @return [Integer, nil]
    optional :media_count, Integer, api_name: :mediaCount

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

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

    # @!attribute queue_id
    #
    #   @return [Integer, nil]
    optional :queue_id, Integer, api_name: :queueId

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

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

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

    # @!attribute scheduled_at
    #
    #   @return [String, nil]
    optional :scheduled_at, String, api_name: :scheduledAt, nil?: true

    # @!attribute sent_rules_extra
    #
    #   @return [String, nil]
    optional :sent_rules_extra, String, api_name: :sentRulesExtra

    # @!attribute sent_rules_type
    #
    #   @return [String, nil]
    optional :sent_rules_type, String, api_name: :sentRulesType

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

    # @!attribute unsend_seconds_queue
    #
    #   @return [Integer, nil]
    optional :unsend_seconds_queue, Integer, api_name: :unsendSecondsQueue

    # @!attribute user_ids
    #
    #   @return [Array<String>, nil]
    optional :user_ids, Onlyfans::Internal::Type::ArrayOf[String], api_name: :userIds

    # @!method initialize(id: nil, cancel_seconds: nil, can_purchase: nil, can_unsend_queue: nil, changed_at: nil, created_at: nil, giphy_id: nil, is_free: nil, is_from_queue: nil, is_liked: nil, is_markdown_disabled: nil, is_media_ready: nil, is_new: nil, is_opened: nil, is_tip: nil, locked_text: nil, media: nil, media_count: nil, previews: nil, price: nil, queue_id: nil, raw_text: nil, release_forms: nil, response_type: nil, scheduled_at: nil, sent_rules_extra: nil, sent_rules_type: nil, text: nil, unsend_seconds_queue: nil, user_ids: nil)
    #   @param id [Integer]
    #   @param cancel_seconds [Integer]
    #   @param can_purchase [Boolean]
    #   @param can_unsend_queue [Boolean]
    #   @param changed_at [String]
    #   @param created_at [String]
    #   @param giphy_id [String, nil]
    #   @param is_free [Boolean]
    #   @param is_from_queue [Boolean]
    #   @param is_liked [Boolean]
    #   @param is_markdown_disabled [Boolean]
    #   @param is_media_ready [Boolean]
    #   @param is_new [Boolean]
    #   @param is_opened [Boolean]
    #   @param is_tip [Boolean]
    #   @param locked_text [Boolean]
    #   @param media [Array<Object>]
    #   @param media_count [Integer]
    #   @param previews [Array<Object>]
    #   @param price [Integer]
    #   @param queue_id [Integer]
    #   @param raw_text [String]
    #   @param release_forms [Array<Object>]
    #   @param response_type [String]
    #   @param scheduled_at [String, nil]
    #   @param sent_rules_extra [String]
    #   @param sent_rules_type [String]
    #   @param text [String]
    #   @param unsend_seconds_queue [Integer]
    #   @param user_ids [Array<String>]
  end
end

Instance Attribute Details

#created_date_timeString?

Returns:

  • (String, nil)


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

optional :created_date_time, String, api_name: :createdDateTime

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



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

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

#idInteger?

Returns:

  • (Integer, nil)


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

optional :id, Integer

#publish_date_timeString?

Returns:

  • (String, nil)


156
# File 'lib/onlyfans/models/saved_for_later/message_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/message_list_response.rb', line 161

optional :type, String