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<IResponse> CreateNotificationAsync(CreateNotificationInput input, CancellationToken cancellationToken = default)

Parameters

input CreateNotificationInput
cancellationToken CancellationToken

Returns

Task<IResponse>

DeleteNotificationAsync(DeleteNotificationInput, CancellationToken)

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

Parameters

input DeleteNotificationInput
cancellationToken CancellationToken

Returns

Task<IResponse>

DispatchNotificationsToUsersAsync(DispatchNotificationsToUsersInput, CancellationToken)

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

Parameters

input DispatchNotificationsToUsersInput
cancellationToken CancellationToken

Returns

Task<IResponse>

GetNotificationsAsync(GetNotificationsInput, CancellationToken)

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

Parameters

input GetNotificationsInput
cancellationToken CancellationToken

Returns

Task<IResponse>

GetUserNotificationsAsync(GetUserNotificationsInput, CancellationToken)

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

Parameters

input GetUserNotificationsInput
cancellationToken CancellationToken

Returns

Task<IResponse>

MarkNotificationAsDismissedAsync(MarkNotificationAsInput, CancellationToken)

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

Parameters

input MarkNotificationAsInput
cancellationToken CancellationToken

Returns

Task<IResponse>

MarkNotificationAsViewedAsync(MarkNotificationAsInput, CancellationToken)

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

Parameters

input MarkNotificationAsInput
cancellationToken CancellationToken

Returns

Task<IResponse>

MarkNotificationsAsOpenedAsync(MarkNotificationsAsOpenedInput, CancellationToken)

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

Parameters

input MarkNotificationsAsOpenedInput
cancellationToken CancellationToken

Returns

Task<IResponse>

UpdateNotificationAsync(UpdateNotificationInput, CancellationToken)

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

Parameters

input UpdateNotificationInput
cancellationToken CancellationToken

Returns

Task<IResponse>