Table of Contents

Class NotificationController

Namespace
Oqtane.Controllers
Assembly
Oqtane.Server.dll
[Route("api/[controller]")]
public class NotificationController : Controller
Inheritance
NotificationController

Constructors

NotificationController(INotificationRepository, IUserPermissions, ISyncManager, ILogManager, ITenantManager)

public NotificationController(INotificationRepository notifications, IUserPermissions userPermissions, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)

Parameters

notifications INotificationRepository
userPermissions IUserPermissions
syncManager ISyncManager
logger ILogManager
tenantManager ITenantManager

Methods

Delete(int)

[HttpDelete("{id}")]
[Authorize(Roles = "Registered Users")]
public void Delete(int id)

Parameters

id int

Get(int)

[HttpGet("{id}")]
[Authorize(Roles = "Registered Users")]
public Notification Get(int id)

Parameters

id int

Returns

Notification

Get(string, string, string)

[HttpGet]
[Authorize(Roles = "Registered Users")]
public IEnumerable<Notification> Get(string siteid, string direction, string userid)

Parameters

siteid string
direction string
userid string

Returns

IEnumerable<Notification>

Get(string, string, string, string)

[HttpGet("read-count")]
[Authorize(Roles = "Registered Users")]
public int Get(string siteid, string direction, string userid, string isread)

Parameters

siteid string
direction string
userid string
isread string

Returns

int

Get(string, string, string, string, string)

[HttpGet("read")]
[Authorize(Roles = "Registered Users")]
public IEnumerable<Notification> Get(string siteid, string direction, string userid, string count, string isread)

Parameters

siteid string
direction string
userid string
count string
isread string

Returns

IEnumerable<Notification>

Post(Notification)

[HttpPost]
[Authorize(Roles = "Registered Users")]
public Notification Post(Notification notification)

Parameters

notification Notification

Returns

Notification

Put(int, Notification)

[HttpPut("{id}")]
[Authorize(Roles = "Registered Users")]
public Notification Put(int id, Notification notification)

Parameters

id int
notification Notification

Returns

Notification