ActivityChange
Represents a user's changed activities.
Attributes added :
The added activities to the respective user. Defaults to None
.
The removed activities from the respective user. Defaults to None
.
The updated activities of the respective user. Defaults to None
.
Methods
(...)
__new__Creates a new activity change with the given parameters.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
added |
| The added activities to the user. | ||
removed |
| The removed activities from the user. | ||
updated |
| The updated activities of the user. |
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
()
copyCopies the activity change.
Returns
new : instance<type<self>>
(...)
copy_withCopies the activity change with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
added |
| The added activities to the user. | ||
removed |
| The removed activities from the user. | ||
updated |
| The updated activities of the user. |
Returns
new : instance<type<self>>
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
(added, updated, removed)
from_fieldsCreates a new activity change with the given parameters.
Parameter | Type | Description |
---|---|---|
added |
| The added activities to the user. |
updated |
| The updated activities of the user. |
removed |
| The removed activities from the user. |
()
iter_added()
iter_removed()
iter_updatedIterates over the activity updates.
This method is an iterable generator.
Yields
updated : ActivityUpdate
()
__eq__()
__getattr__Drops a rich attribute error.
()
__hash__Returns the activity change's hash value.
()
__iter__Unpacks the activity change.
This method is a generator.
()
__len__Helper for unpacking if needed.
()
__repr__Returns the representation of the activity change.