-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
ChannelStatusesChangedEventArgs.cs
37 lines (33 loc) · 1.22 KB
/
ChannelStatusesChangedEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections;
namespace Iot.Device.Mpr121
{
/// <summary>
/// Notifies about a the channel statuses have been changed.
/// Refresh period can be changed by setting PeriodRefresh property.
/// </summary>
/// <param name="sender">The sender MPR121</param>
/// <param name="e">The even arguments</param>
public delegate void ChannelStatusesChanged(object sender, ChannelStatusesChangedEventArgs e);
/// <summary>
/// Represents the arguments of event rising when the channel statuses have been changed.
/// </summary>
public class ChannelStatusesChangedEventArgs : EventArgs
{
/// <summary>
/// The channel statuses.
/// </summary>
public bool[] ChannelStatuses { get; private set; }
/// <summary>
/// Initialize event arguments.
/// </summary>
/// <param name="channelStatuses">The channel statuses.</param>
public ChannelStatusesChangedEventArgs(bool[] channelStatuses)
: base()
{
ChannelStatuses = channelStatuses;
}
}
}