Interface ICrashAcknowledgementDal
Data functionality for acknowledging crash downloads.
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.SQL.Abstractions.dll
Syntax
public interface ICrashAcknowledgementDal
Methods
View SourceAcknowledgeCrashes(string, IEnumerable<int>)
Acknowledges downloaded crashes were deleted.
Declaration
Task AcknowledgeCrashes(string user, IEnumerable<int> ids)
Parameters
Type | Name | Description |
---|---|---|
string | user | The user who acknowledged the deletion. |
IEnumerable<int> | ids | The crash download IDs. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
GetAllAcknowledgementsAsync(string)
Retrieves a list of crash downloads that need notified or acknowledged.
Declaration
IAsyncEnumerable<CrashAcknowledgement> GetAllAcknowledgementsAsync(string title)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title to list crash downloads. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<CrashAcknowledgement> | An async enumeration of crash downloads. |
GetPendingAcknowledgementsAsync(string)
Retrieves a list of unacknowledged crash downloads.
Declaration
IAsyncEnumerable<CrashAcknowledgement> GetPendingAcknowledgementsAsync(string user)
Parameters
Type | Name | Description |
---|---|---|
string | user | The user who downloaded crashes. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<CrashAcknowledgement> | An async enumeration of crash downloads. |
SetNotified(int, bool)
Marks a crash download as notified.
Declaration
Task SetNotified(int id, bool value)
Parameters
Type | Name | Description |
---|---|---|
int | id | The crash download ID. |
bool | value | Whether the download has been notified. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |