Notifications#

class autoreplit.classes.notifications.CommonNotif(json: Dict[str, Any])#

Bases: QueryResultBase

The most common stucture for notifications. Look at notifications.gql for more details.

creator: SimpleUser#

The notification’s creator

id: str#

Notification id

replComment: BasicComment | None#

The linked comment, if the type is a comment notif

seen: bool#

If the user saw the notification

timeCreated: str#

Time the notification was created

type: str#

Notif type

url: str | None#

Notif url

class autoreplit.classes.notifications.UnidentifiedNotif(json: Dict[str, Any])#

Bases: QueryResultBase

Unidentified notification. Will produce a warning, please featrue request support for the unidentified type.

autoreplit.classes.notifications.makeNotification(json: Dict[str, Any]) List[CommonNotif | UnidentifiedNotif]#

Sort and type notif’s.