Get a list of
...
notices by user id
Description
Retrieves a list of outage notices for a specific user.
Package Details
Interface
IOutageNoticeManagerINoticeManager
Syntax
await OutageNoticeManagerNoticeManager.GetByUserId(int serviceIduserId, bool toBeDisplayedOnly = true);
Returns
Task<ICollection<OutageNotice>>
Task<ICollection<Notice>>
API
GET
/api/v1/users/{id}/outage-notices
Parameters
Path
id: The user id
Query string (optional)
onlyApplicableNotices: true by default. true: all notices of the user that reached display start date time
Returns
200 OK - List of outage notices
Example
Code Block | ||
---|---|---|
| ||
const int userId = 123 |
...
; var notices = await _ |
...
noticeManager.GetByUserId(userId, true); |