-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathSignalData.cs
28 lines (25 loc) · 941 Bytes
/
SignalData.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
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
namespace InfraredRemote
{
public class SignalData
{
public SignalData(int addressNumber, int commandNumber, string rawAddress, string rawCommand, Protocol protocol, string payload)
{
AddressNumber = addressNumber;
CommandNumber = commandNumber;
RawAddress = rawAddress;
RawCommand = rawCommand;
Protocol = protocol;
Payload = payload;
}
public int AddressNumber { get; private set; } = -1;
public int CommandNumber { get; private set; } = -1;
public string RawAddress { get; private set; }
public string RawCommand { get; private set; }
public Protocol Protocol { get; private set; } = Protocol.Unknown;
public string Payload { get; private set; }
}
}