org.models.push_notification
Classes
Keeps track of all outbound push notifications to prevent duplicates. |
|
Simple collection for sent notifications. |
Module Contents
- class org.models.push_notification.PushNotification[source]
Bases:
onegov.core.orm.Base
Keeps track of all outbound push notifications to prevent duplicates.
- classmethod was_notification_sent(session: sqlalchemy.orm.Session, news_id: int, topic_id: str) bool [source]
- classmethod record_sent_notification(session: sqlalchemy.orm.Session, news_id: int, topic_id: str, response_data: dict[str, Any] | None) PushNotification [source]
- class org.models.push_notification.PushNotificationCollection(session: sqlalchemy.orm.Session, **kwargs: Any)[source]
Bases:
onegov.core.collection.GenericCollection
[PushNotification
]Simple collection for sent notifications.
- property model_class: type[PushNotification][source]
- query() sqlalchemy.orm.Query[PushNotification] [source]