Interface INoticeService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface INoticeService
- Extension Methods
Methods
DeleteNoticeAsync(Notice)
Asynchronously deletes the specified notice.
Task DeleteNoticeAsync(Notice notice)
Parameters
noticeNoticeThe notice to delete.
Returns
- Task
A task that represents the asynchronous delete operation.
DeleteNoticeByIdAsync(ObjectId)
Asynchronously deletes a notice identified by the specified identifier.
Task DeleteNoticeByIdAsync(ObjectId noticeId)
Parameters
noticeIdObjectIdThe unique identifier of the notice to delete.
Returns
GetNoticeByIdAsync(ObjectId)
Asynchronously retrieves a Notice entity by its unique identifier from the data store. Returns null when no notice matches the provided identifier.
Task<Notice?> GetNoticeByIdAsync(ObjectId noticeId)
Parameters
noticeIdObjectIdThe MongoDB.Bson.ObjectId that uniquely identifies the notice to retrieve.
Returns
- Task<Notice>
A Task<TResult> containing the matching Notice, or null if no notice is found.
GetNoticeByTypeAsync(string)
Asynchronously retrieves a collection of notices filtered by the specified notice type. The task result may be null when no notices match the given type.
Task<IEnumerable<Notice>?> GetNoticeByTypeAsync(string noticeType)
Parameters
noticeTypestringThe type of notice to filter by.
Returns
- Task<IEnumerable<Notice>>
A task containing an enumerable of matching Notice objects, or null if none are found.
GetNoticesAsync()
Asynchronously retrieves a collection of notices.
Task<IEnumerable<Notice>> GetNoticesAsync()
Returns
- Task<IEnumerable<Notice>>
A task that represents the asynchronous operation. The task result contains an enumerable collection of Notice objects.
GetNoticesByDisplayId(ObjectId)
Asynchronously retrieves the collection of notices associated with the specified display identifier.
Task<IEnumerable<Notice>?> GetNoticesByDisplayId(ObjectId displayId)
Parameters
displayIdObjectIdThe identifier of the display whose notices should be retrieved.
Returns
- Task<IEnumerable<Notice>>
A task that returns the notices for the display, or
nullwhen no notices are found for the given display.
InsertNotice(Notice)
Inserts a new notice into the data store.
Task<Notice?> InsertNotice(Notice notice)
Parameters
noticeNoticeThe notice entity to insert.
Returns
- Task<Notice>
A task that represents the asynchronous operation. The task result contains the inserted Notice, or
nullif the notice could not be inserted.
SaveRequest(ApiRequest)
Persists the provided API request to the data store.
Task SaveRequest(ApiRequest apiRequest)
Parameters
apiRequestApiRequestThe API request to be saved.
Returns
SaveRequestAsync(ApiRequest)
Asynchronously persists the specified API request.
Task SaveRequestAsync(ApiRequest apiRequest)
Parameters
apiRequestApiRequestThe API request to save.
Returns
UpdateNoticeAsync(Notice)
Asynchronously updates an existing notice in the system.
Task UpdateNoticeAsync(Notice notice)
Parameters
noticeNoticeThe notice entity containing the updated information to be persisted.