UnspeccedGetPostThreadV2Input constructor

  1. @JsonSerializable(includeIfNull: false)
const UnspeccedGetPostThreadV2Input({
  1. @AtUriConverter() required AtUri anchor,
  2. @Default(true) bool above,
  3. @Default(6) int below,
  4. @Default(10) int branchingFactor,
  5. @Default(false) bool prioritizeFollowedUsers,
  6. @UnspeccedGetPostThreadV2SortConverter() UnspeccedGetPostThreadV2Sort? sort,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory UnspeccedGetPostThreadV2Input({
  /// Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.
  @AtUriConverter() required AtUri anchor,

  /// Whether to include parents above the anchor.
  @Default(true) bool above,

  /// How many levels of replies to include below the anchor.
  @Default(6) int below,

  /// Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).
  @Default(10) int branchingFactor,

  /// Whether to prioritize posts from followed users. It only has effect when the user is authenticated.
  @Default(false) bool prioritizeFollowedUsers,

  /// Sorting for the thread replies.
  @UnspeccedGetPostThreadV2SortConverter() UnspeccedGetPostThreadV2Sort? sort,

  Map<String, dynamic>? $unknown,
}) = _UnspeccedGetPostThreadV2Input;