Functions¶
|
|
|
Details¶
- Malcontent.app_filter_deserialize(variant, user_id)¶
- Parameters:
variant (
GLib.Variant
) – a serialized app filter variantuser_id (
int
) – the ID of the user the app filter relates to
- Raises:
- Returns:
deserialized app filter
- Return type:
Deserialize an app filter previously serialized with
Malcontent.AppFilter.serialize
(). This function guarantees to be able to deserialize any serialized form from this version or older versions of libmalcontent.If deserialization fails,
Malcontent.ManagerError.INVALID_DATA
will be returned.New in version 0.7.0.
- Malcontent.session_limits_deserialize(variant, user_id)¶
- Parameters:
variant (
GLib.Variant
) – a serialized session limits variantuser_id (
int
) – the ID of the user the session limits relate to
- Raises:
- Returns:
deserialized session limits
- Return type:
Deserialize a set of session limits previously serialized with
Malcontent.SessionLimits.serialize
(). This function guarantees to be able to deserialize any serialized form from this version or older versions of libmalcontent.If deserialization fails,
Malcontent.ManagerError.INVALID_DATA
will be returned.New in version 0.7.0.