Class OnvifDeviceManagementService
- Namespace
- WINKOnvif.Core.DeviceManagement
- Assembly
- WINKOnvif.Core.dll
public class OnvifDeviceManagementService : IDeviceManagementService
- Inheritance
-
OnvifDeviceManagementService
- Implements
-
- Inherited Members
-
Constructors
OnvifDeviceManagementService(HttpClient, OnvifCredentials, string, ILogger<OnvifDeviceManagementService>?, IAuthenticator?)
public OnvifDeviceManagementService(HttpClient httpClient, OnvifCredentials credentials, string deviceEndpoint, ILogger<OnvifDeviceManagementService>? logger = null, IAuthenticator? authenticator = null)
Parameters
httpClient
HttpClient
credentials
OnvifCredentials
deviceEndpoint
string
logger
ILogger<OnvifDeviceManagementService>
authenticator
IAuthenticator
Methods
CreateCertificateAsync(CertificateGenerationParameters)
public Task<string> CreateCertificateAsync(CertificateGenerationParameters parameters)
Parameters
parameters
CertificateGenerationParameters
Returns
- Task<string>
CreateUserAsync(User)
public Task CreateUserAsync(User user)
Parameters
user
User
Returns
- Task
DeleteCertificateAsync(string)
public Task DeleteCertificateAsync(string certificateId)
Parameters
certificateId
string
Returns
- Task
DeleteUserAsync(string)
public Task DeleteUserAsync(string username)
Parameters
username
string
Returns
- Task
GetCapabilitiesAsync()
public Task<DeviceCapabilities> GetCapabilitiesAsync()
Returns
- Task<DeviceCapabilities>
GetCertificateStatusAsync(string)
public Task<CertificateStatus> GetCertificateStatusAsync(string certificateId)
Parameters
certificateId
string
Returns
- Task<CertificateStatus>
GetCertificatesAsync()
public Task<List<CertificateInformation>> GetCertificatesAsync()
Returns
- Task<List<CertificateInformation>>
public Task<DeviceInformation> GetDeviceInformationAsync()
Returns
- Task<DeviceInformation>
GetDnsConfigurationAsync()
public Task<DnsConfiguration> GetDnsConfigurationAsync()
Returns
- Task<DnsConfiguration>
public Task<FirmwareInformation> GetFirmwareInformationAsync()
Returns
- Task<FirmwareInformation>
GetFirmwareUpgradeOptionsAsync()
public Task<FirmwareUpgradeOptions> GetFirmwareUpgradeOptionsAsync()
Returns
- Task<FirmwareUpgradeOptions>
GetFirmwareUpgradeStatusAsync()
public Task<FirmwareUpgradeStatus> GetFirmwareUpgradeStatusAsync()
Returns
- Task<FirmwareUpgradeStatus>
GetNetworkConfigurationAsync()
public Task<NetworkConfiguration> GetNetworkConfigurationAsync()
Returns
- Task<NetworkConfiguration>
GetNetworkInterfacesAsync()
public Task<List<NetworkInterface>> GetNetworkInterfacesAsync()
Returns
- Task<List<NetworkInterface>>
GetNtpSettingsAsync()
public Task<NtpSettings> GetNtpSettingsAsync()
Returns
- Task<NtpSettings>
GetSystemDateAndTimeAsync()
public Task<SystemDateAndTime> GetSystemDateAndTimeAsync()
Returns
- Task<SystemDateAndTime>
GetUsersAsync()
public Task<List<UserInfo>> GetUsersAsync()
Returns
- Task<List<UserInfo>>
SetCertificateStatusAsync(string, bool)
public Task SetCertificateStatusAsync(string certificateId, bool enabled)
Parameters
certificateId
string
enabled
bool
Returns
- Task
SetDnsConfigurationAsync(DnsConfiguration)
public Task SetDnsConfigurationAsync(DnsConfiguration configuration)
Parameters
configuration
DnsConfiguration
Returns
- Task
SetFactoryDefaultAsync(bool)
public Task SetFactoryDefaultAsync(bool hard = true)
Parameters
hard
bool
Returns
- Task
SetNetworkConfigurationAsync(NetworkConfiguration)
public Task SetNetworkConfigurationAsync(NetworkConfiguration configuration)
Parameters
configuration
NetworkConfiguration
Returns
- Task
SetNetworkInterfaceAsync(string, NetworkInterfaceConfig)
public Task SetNetworkInterfaceAsync(string interfaceToken, NetworkInterfaceConfig configuration)
Parameters
interfaceToken
string
configuration
NetworkInterfaceConfig
Returns
- Task
SetNtpSettingsAsync(NtpSettings)
public Task SetNtpSettingsAsync(NtpSettings settings)
Parameters
settings
NtpSettings
Returns
- Task
SetSystemDateAndTimeAsync(TimeSettings)
public Task SetSystemDateAndTimeAsync(TimeSettings settings)
Parameters
settings
TimeSettings
Returns
- Task
SetUserPasswordAsync(string, string)
public Task SetUserPasswordAsync(string username, string newPassword)
Parameters
username
string
newPassword
string
Returns
- Task
StartFirmwareUpgradeAsync(FirmwareUpgradeParameters)
public Task<bool> StartFirmwareUpgradeAsync(FirmwareUpgradeParameters parameters)
Parameters
parameters
FirmwareUpgradeParameters
Returns
- Task<bool>
SystemRebootAsync()
public Task SystemRebootAsync()
Returns
- Task
UpdateUserAsync(User)
public Task UpdateUserAsync(User user)
Parameters
user
User
Returns
- Task
UploadCertificateAsync(X509Certificate2)
public Task<string> UploadCertificateAsync(X509Certificate2 certificate)
Parameters
certificate
X509Certificate2
Returns
- Task<string>