Class: Onlyfans::Models::Posts::CommentListResponse::Data::List

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

Defined Under Namespace

Classes: Author

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, author: nil, can_like: nil, changed_at: nil, giphy_id: nil, is_liked: nil, is_liked_by_author: nil, is_pinned: nil, likes_count: nil, posted_at: nil, text: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • author (Onlyfans::Models::Posts::CommentListResponse::Data::List::Author) (defaults to: nil)
  • can_like (Boolean) (defaults to: nil)
  • changed_at (String) (defaults to: nil)
  • giphy_id (String, nil) (defaults to: nil)
  • is_liked (Boolean) (defaults to: nil)
  • is_liked_by_author (Boolean) (defaults to: nil)
  • is_pinned (Boolean) (defaults to: nil)
  • likes_count (Integer) (defaults to: nil)
  • posted_at (String) (defaults to: nil)
  • text (String) (defaults to: nil)


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
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 137

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

  # @!attribute author
  #
  #   @return [Onlyfans::Models::Posts::CommentListResponse::Data::List::Author, nil]
  optional :author, -> { Onlyfans::Models::Posts::CommentListResponse::Data::List::Author }

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

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

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

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

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

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

  # @!attribute likes_count
  #
  #   @return [Integer, nil]
  optional :likes_count, Integer, api_name: :likesCount

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

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

  # @!method initialize(id: nil, author: nil, can_like: nil, changed_at: nil, giphy_id: nil, is_liked: nil, is_liked_by_author: nil, is_pinned: nil, likes_count: nil, posted_at: nil, text: nil)
  #   @param id [Integer]
  #   @param author [Onlyfans::Models::Posts::CommentListResponse::Data::List::Author]
  #   @param can_like [Boolean]
  #   @param changed_at [String]
  #   @param giphy_id [String, nil]
  #   @param is_liked [Boolean]
  #   @param is_liked_by_author [Boolean]
  #   @param is_pinned [Boolean]
  #   @param likes_count [Integer]
  #   @param posted_at [String]
  #   @param text [String]

  # @see Onlyfans::Models::Posts::CommentListResponse::Data::List#author
  class Author < Onlyfans::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [Integer, nil]
    optional :id, Integer

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

    # @!method initialize(id: nil, _view: nil)
    #   @param id [Integer]
    #   @param _view [String]
  end
end

Instance Attribute Details

#authorOnlyfans::Models::Posts::CommentListResponse::Data::List::Author?



146
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 146

optional :author, -> { Onlyfans::Models::Posts::CommentListResponse::Data::List::Author }

#can_likeBoolean?

Returns:

  • (Boolean, nil)


151
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 151

optional :can_like, Onlyfans::Internal::Type::Boolean, api_name: :canLike

#changed_atString?

Returns:

  • (String, nil)


156
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 156

optional :changed_at, String, api_name: :changedAt

#giphy_idString?

Returns:

  • (String, nil)


161
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 161

optional :giphy_id, String, api_name: :giphyId, nil?: true

#idInteger?

Returns:

  • (Integer, nil)


141
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 141

optional :id, Integer

#is_likedBoolean?

Returns:

  • (Boolean, nil)


166
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 166

optional :is_liked, Onlyfans::Internal::Type::Boolean, api_name: :isLiked

#is_liked_by_authorBoolean?

Returns:

  • (Boolean, nil)


171
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 171

optional :is_liked_by_author, Onlyfans::Internal::Type::Boolean, api_name: :isLikedByAuthor

#is_pinnedBoolean?

Returns:

  • (Boolean, nil)


176
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 176

optional :is_pinned, Onlyfans::Internal::Type::Boolean, api_name: :isPinned

#likes_countInteger?

Returns:

  • (Integer, nil)


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

optional :likes_count, Integer, api_name: :likesCount

#posted_atString?

Returns:

  • (String, nil)


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

optional :posted_at, String, api_name: :postedAt

#textString?

Returns:

  • (String, nil)


191
# File 'lib/onlyfans/models/posts/comment_list_response.rb', line 191

optional :text, String