Table of Contents

Class NotificationsRestService

Namespace
OpenSettings.Services.Rest
Assembly
OpenSettings.dll
public class NotificationsRestService : INotificationsRestService, INotificationsService
Inheritance
NotificationsRestService
Implements
Inherited Members

Constructors

NotificationsRestService(HttpClient)

public NotificationsRestService(HttpClient httpClient)

Parameters

httpClient HttpClient

Methods

CreateNotificationAsync(CreateNotificationInput, CancellationToken)

public Task<IJsonResponse> CreateNotificationAsync(CreateNotificationInput input, CancellationToken cancellationToken = default)

Parameters

input CreateNotificationInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

DeleteNotificationAsync(DeleteNotificationInput, CancellationToken)

public Task<IJsonResponse> DeleteNotificationAsync(DeleteNotificationInput input, CancellationToken cancellationToken = default)

Parameters

input DeleteNotificationInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

DispatchNotificationsToUsersAsync(DispatchNotificationsToUsersInput, CancellationToken)

public Task<IJsonResponse> DispatchNotificationsToUsersAsync(DispatchNotificationsToUsersInput input, CancellationToken cancellationToken = default)

Parameters

input DispatchNotificationsToUsersInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

GetNotificationsAsync(GetNotificationsInput, CancellationToken)

public Task<IJsonResponse> GetNotificationsAsync(GetNotificationsInput input, CancellationToken cancellationToken = default)

Parameters

input GetNotificationsInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

GetUserNotificationsAsync(GetUserNotificationsInput, CancellationToken)

public Task<IJsonResponse> GetUserNotificationsAsync(GetUserNotificationsInput input, CancellationToken cancellationToken = default)

Parameters

input GetUserNotificationsInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

MarkNotificationAsDismissedAsync(MarkNotificationAsInput, CancellationToken)

public Task<IJsonResponse> MarkNotificationAsDismissedAsync(MarkNotificationAsInput input, CancellationToken cancellationToken = default)

Parameters

input MarkNotificationAsInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

MarkNotificationAsViewedAsync(MarkNotificationAsInput, CancellationToken)

public Task<IJsonResponse> MarkNotificationAsViewedAsync(MarkNotificationAsInput input, CancellationToken cancellationToken = default)

Parameters

input MarkNotificationAsInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

MarkNotificationsAsOpenedAsync(MarkNotificationsAsOpenedInput, CancellationToken)

public Task<IJsonResponse> MarkNotificationsAsOpenedAsync(MarkNotificationsAsOpenedInput input, CancellationToken cancellationToken = default)

Parameters

input MarkNotificationsAsOpenedInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>

UpdateNotificationAsync(UpdateNotificationInput, CancellationToken)

public Task<IJsonResponse> UpdateNotificationAsync(UpdateNotificationInput input, CancellationToken cancellationToken = default)

Parameters

input UpdateNotificationInput
cancellationToken CancellationToken

Returns

Task<IJsonResponse>