-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathICoapOption.cs
More file actions
39 lines (35 loc) · 804 Bytes
/
ICoapOption.cs
File metadata and controls
39 lines (35 loc) · 804 Bytes
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
38
39
using System;
namespace Waher.Networking.CoAP
{
/// <summary>
/// Interface for all CoAP options.
/// </summary>
public interface ICoapOption
{
/// <summary>
/// Option number.
/// </summary>
int OptionNumber
{
get;
}
/// <summary>
/// If the option is critical or not. Messages containing critical options that are not processed, must be discarded.
/// </summary>
bool Critical
{
get;
}
/// <summary>
/// Gets the option value.
/// </summary>
/// <returns>Binary value. Can be null, if option does not have a value.</returns>
byte[] GetValue();
/// <summary>
/// Creates a new CoAP option.
/// </summary>
/// <param name="Value">Option value.</param>
/// <returns>Newly created CoAP option.</returns>
CoapOption Create(byte[] Value);
}
}