redditwarp.models.submission_collection#

class redditwarp.models.submission_collection.SubmissionCollectionInfo(d: Mapping[str, Any])[source]#

Bases: DatamementoPropertiesMixin

d: Mapping[str, Any]#
uuid: str#
subreddit_id36: str#
subreddit_idn: int#
subreddit_id: int#

Same as subreddit_idn.

author_id36: str#
author_idn: int#
author_id: int#

Same as author_idn.

author_display_name: str#
title: str#
description: str#
created_ts: float#
created_at: datetime#
last_post_added_ut: float#
last_post_added_at: datetime#
display_layout: str#

Either: empty string, TIMELINE, or GALLERY.

Value is an empty string on new collections. Empty string is treated the same as TIMELINE.

layout: str#

Either TIMELINE or GALLERY.

This is the same as the display_layout attribute but the empty string is changed to TIMELINE.

submission_id36s: Sequence[str]#

List of submission ID36s contained in the collection.

submission_idns: Sequence[int]#

List of submission IDs contained in the collection.

submission_ids: Sequence[int]#

Same as self.submission_idns.

class redditwarp.models.submission_collection.SubmissionCollection(d: Mapping[str, Any])[source]#

Bases: SubmissionCollectionInfo, Sequence[Submission]

property submissions: Sequence[Submission]#

List of submission objects contained in the collection.