coarnotify.patterns.undo_offer¶
Pattern to represent the Undo Offer notification https://coar-notify.net/specification/1.0.0/undo-offer/
Classes¶
Class to represent the Undo Offer notification |
Module Contents¶
- class coarnotify.patterns.undo_offer.UndoOffer(stream: coarnotify.core.activitystreams2.ActivityStream | dict = None, validate_stream_on_construct=True, validate_properties=True, validators=None, validation_context=None, properties_by_reference=True)¶
Bases:
coarnotify.core.notify.NestedPatternObjectMixin
,coarnotify.core.notify.NotifyPattern
,coarnotify.core.notify.SummaryMixin
Class to represent the Undo Offer notification
- validate() bool ¶
In addition to the base validation apply the following constraints:
The
inReplyTo
property is requiredThe
inReplyTo
value must match theobject.id
value
- Returns:
- TYPE¶
Undo Offer type, the ActivityStreams Undo type