/
GetById() [NoticeManager]

GetById() [NoticeManager]

Get a notice by id

Description

Retrieve a notice by id.

Package Details

Interface

INoticeManager

Syntax

await NoticeManager.GetById(int id);

Returns

Task<Notice>

API

GET
/api/v1/notices/{id}

Parameters

Path
id: The notice id

Returns

200 OK - notice

Example

const int noticeId = 123; var notices = await _noticeManager.GetById(noticeId);

Related content

Create() [NoticeManager]
Create() [NoticeManager]
Read with this
GetAllTypes() [NoticeManager]
GetAllTypes() [NoticeManager]
Read with this
GetExpiredNoticesByUserId() [NoticeManager]
GetExpiredNoticesByUserId() [NoticeManager]
Read with this
GetByUserId() [NoticeManager]
GetByUserId() [NoticeManager]
Read with this
Update() [NoticeManager]
Update() [NoticeManager]
Read with this
GetByServiceId() [NoticeManager]
GetByServiceId() [NoticeManager]
Read with this