Class: Onlyfans::Models::ChatListResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/chat_list_response.rb,
sig/onlyfans/models/chat_list_response.rbs

Defined Under Namespace

Classes: Fan, LastMessage

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, action: nil, cancel_date: nil, date: nil, discount: nil, duration: nil, earning_id: nil, expire_date: nil, is_current: nil, offer_end: nil, offer_start: nil, price: nil, regular_price: nil, start_date: nil, subscriber_id: nil, type: nil, user_id: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • action (String) (defaults to: nil)
  • cancel_date (String, nil) (defaults to: nil)
  • date (String) (defaults to: nil)
  • discount (Integer) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • earning_id (Integer) (defaults to: nil)
  • expire_date (String) (defaults to: nil)
  • is_current (Boolean) (defaults to: nil)
  • offer_end (String, nil) (defaults to: nil)
  • offer_start (String, nil) (defaults to: nil)
  • price (Integer) (defaults to: nil)
  • regular_price (Integer) (defaults to: nil)
  • start_date (String) (defaults to: nil)
  • subscriber_id (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)
  • user_id (Integer) (defaults to: nil)


# File 'lib/onlyfans/models/chat_list_response.rb', line 188

Instance Attribute Details

#can_go_to_profile ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


134
# File 'lib/onlyfans/models/chat_list_response.rb', line 134

optional :can_go_to_profile, Onlyfans::Internal::Type::Boolean, api_name: :canGoToProfile

#can_not_send_reason ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


139
# File 'lib/onlyfans/models/chat_list_response.rb', line 139

optional :can_not_send_reason, Onlyfans::Internal::Type::Boolean, api_name: :canNotSendReason

#can_send_message ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


144
# File 'lib/onlyfans/models/chat_list_response.rb', line 144

optional :can_send_message, Onlyfans::Internal::Type::Boolean, api_name: :canSendMessage

#count_pinned_messages ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


149
# File 'lib/onlyfans/models/chat_list_response.rb', line 149

optional :count_pinned_messages, Integer, api_name: :countPinnedMessages

#fan ⇒ Onlyfans::Models::ChatListResponse::Data::Fan?



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

optional :fan, -> { Onlyfans::Models::ChatListResponse::Data::Fan }

#has_purchased_feed ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


159
# File 'lib/onlyfans/models/chat_list_response.rb', line 159

optional :has_purchased_feed, Onlyfans::Internal::Type::Boolean, api_name: :hasPurchasedFeed

#has_unread_tips ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


164
# File 'lib/onlyfans/models/chat_list_response.rb', line 164

optional :has_unread_tips, Onlyfans::Internal::Type::Boolean, api_name: :hasUnreadTips

#is_muted_notifications ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


169
# File 'lib/onlyfans/models/chat_list_response.rb', line 169

optional :is_muted_notifications, Onlyfans::Internal::Type::Boolean, api_name: :isMutedNotifications

#last_message ⇒ Onlyfans::Models::ChatListResponse::Data::LastMessage?



174
175
176
# File 'lib/onlyfans/models/chat_list_response.rb', line 174

optional :last_message,
-> { Onlyfans::Models::ChatListResponse::Data::LastMessage },
api_name: :lastMessage

#last_read_message_id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


181
# File 'lib/onlyfans/models/chat_list_response.rb', line 181

optional :last_read_message_id, Integer, api_name: :lastReadMessageId

#unread_messages_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


186
# File 'lib/onlyfans/models/chat_list_response.rb', line 186

optional :unread_messages_count, Integer, api_name: :unreadMessagesCount

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


250
# File 'sig/onlyfans/models/chat_list_response.rbs', line 250

def to_hash: -> {