2022-11-13 02:15:47 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (C) 2018 Intel Corporation.
|
|
|
|
# All rights reserved.
|
|
|
|
|
2019-09-20 08:24:52 +00:00
|
|
|
def notify_get_types(client):
|
|
|
|
return client.call("notify_get_types")
|
2018-12-06 15:56:06 +00:00
|
|
|
|
|
|
|
|
2019-09-20 08:35:27 +00:00
|
|
|
def notify_get_notifications(client,
|
|
|
|
id=None,
|
|
|
|
max=None):
|
2018-12-06 15:56:06 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
|
|
|
id First ID to start fetching from
|
|
|
|
max Maximum number of notifications to return in response
|
|
|
|
|
|
|
|
Return:
|
|
|
|
Notifications array
|
|
|
|
"""
|
|
|
|
|
|
|
|
params = {}
|
|
|
|
if id:
|
|
|
|
params['id'] = id
|
|
|
|
|
|
|
|
if max:
|
|
|
|
params['max'] = max
|
|
|
|
|
2019-09-20 08:35:27 +00:00
|
|
|
return client.call("notify_get_notifications", params)
|