/// <inheritdoc/>
        public async Task <PagedResult <Alarm> > GetForObjectAsync(Guid objectId, AlarmFilter alarmFilter)
        {
            List <Alarm> alarms   = new List <Alarm>();
            var          response = await GetPagedResultsAsync <Alarm>("objects", ToDictionary(alarmFilter), objectId, "alarms").ConfigureAwait(false);

            if (Version >= ApiVersion.v3)
            {
                foreach (var item in response.Items)
                {
                    alarms.Add(await CreateItem(item));
                }
                response = new PagedResult <Alarm> {
                    Items       = alarms,
                    CurrentPage = response.CurrentPage,
                    PageCount   = response.PageCount,
                    PageSize    = response.PageSize,
                    Total       = response.Total
                };
            }
            return(response);
        }
 /// <inheritdoc/>
 public PagedResult <Alarm> GetForObject(Guid objectId, AlarmFilter alarmFilter)
 {
     return(GetForObjectAsync(objectId, alarmFilter).GetAwaiter().GetResult());
 }
 /// <inheritdoc/>
 public PagedResult <Alarm> GetForNetworkDevice(Guid networkDeviceId, AlarmFilter alarmFilter)
 {
     return(GetForNetworkDeviceAsync(networkDeviceId, alarmFilter).GetAwaiter().GetResult());
 }
 /// <inheritdoc/>
 public PagedResult <Alarm> Get(AlarmFilter alarmFilter)
 {
     return(GetAsync(alarmFilter).GetAwaiter().GetResult());
 }