ISettingsRepo¶
Namespace: Database.Repository.SettingsRepo
Repository interface for accessing and managing topic settings.
Methods¶
AddTopicSettingAsync(TopicSetting)¶
Asynchronously adds a new topic setting to the repository.
Parameters¶
topicSetting TopicSetting
The topic setting to add to the repository.
Returns¶
A task that represents the asynchronous operation. The task result contains the number of entities affected by
the operation.
Exceptions¶
ArgumentNullException
Thrown when topicSetting is null.
InvalidOperationException
Thrown when the add operation fails.
GetTopicSettingsAsync()¶
Asynchronously retrieves a list of all topic settings.
Returns¶
A task that represents the asynchronous operation. The task result contains a list of
TopicSetting objects.
GetTopicSettingsAsync(Int32, SensorType)¶
Asynchronously retrieves a list of all topic settings for that place and sensor type.
Parameters¶
placeId Int32
Place id
sensorType SensorType
Sensor type
Returns¶
A task that represents the asynchronous operation. The task result contains a list of
TopicSetting objects.
RemoveTopicSettingAsync(TopicSetting)¶
Asynchronously removes a topic setting
Parameters¶
topicSetting TopicSetting
The topic setting to remove
Returns¶
A task that represents the asynchronous operation. The task result contains the number of entities affected by
the operation.
Exceptions¶
ArgumentNullException
Thrown when topicSetting is null.
InvalidOperationException
Thrown when the add operation fails.
UpdateTopicSettingAsync(TopicSetting)¶
Asynchronously updates a topic setting
Parameters¶
topicSetting TopicSetting
The topic setting to update
Returns¶
A task that represents the asynchronous operation. The task result contains the number of entities affected by
the operation.
Exceptions¶
ArgumentNullException
Thrown when topicSetting is null.
InvalidOperationException
Thrown when the add operation fails.