Class: Onlyfans::Models::UserListRetrieveResponse::Data::User

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

Defined Under Namespace

Classes: AvatarThumbs

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, avatar: nil, avatar_thumbs: nil, is_verified: nil, name: nil, username: nil, view: nil) ⇒ Object

Parameters:



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
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 222

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

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

  # @!attribute avatar_thumbs
  #
  #   @return [Onlyfans::Models::UserListRetrieveResponse::Data::User::AvatarThumbs, nil]
  optional :avatar_thumbs,
           -> { Onlyfans::Models::UserListRetrieveResponse::Data::User::AvatarThumbs },
           api_name: :avatarThumbs

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

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

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

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

  # @!method initialize(id: nil, avatar: nil, avatar_thumbs: nil, is_verified: nil, name: nil, username: nil, view: nil)
  #   @param id [Integer]
  #   @param avatar [String]
  #   @param avatar_thumbs [Onlyfans::Models::UserListRetrieveResponse::Data::User::AvatarThumbs]
  #   @param is_verified [Boolean]
  #   @param name [String]
  #   @param username [String]
  #   @param view [String]

  # @see Onlyfans::Models::UserListRetrieveResponse::Data::User#avatar_thumbs
  class AvatarThumbs < Onlyfans::Internal::Type::BaseModel
    # @!attribute c144
    #
    #   @return [String, nil]
    optional :c144, String

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

    # @!method initialize(c144: nil, c50: nil)
    #   @param c144 [String]
    #   @param c50 [String]
  end
end

Instance Attribute Details

#avatarString?

Returns:

  • (String, nil)


231
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 231

optional :avatar, String

#avatar_thumbsOnlyfans::Models::UserListRetrieveResponse::Data::User::AvatarThumbs?



236
237
238
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 236

optional :avatar_thumbs,
-> { Onlyfans::Models::UserListRetrieveResponse::Data::User::AvatarThumbs },
api_name: :avatarThumbs

#idInteger?

Returns:

  • (Integer, nil)


226
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 226

optional :id, Integer

#is_verifiedBoolean?

Returns:

  • (Boolean, nil)


243
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 243

optional :is_verified, Onlyfans::Internal::Type::Boolean, api_name: :isVerified

#nameString?

Returns:

  • (String, nil)


248
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 248

optional :name, String

#usernameString?

Returns:

  • (String, nil)


253
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 253

optional :username, String

#viewString?

Returns:

  • (String, nil)


258
# File 'lib/onlyfans/models/user_list_retrieve_response.rb', line 258

optional :view, String