Multiprocotol Terminalprogram (BAT)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
776 B

using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;
namespace MultiTerm.Protocols.Model;
/// <summary>
/// One line of data(characters).
/// </summary>
public partial class DataLine : ObservableObject
{
/// <summary>
/// Represents the collection of characters from a communication protocol.
/// </summary>
[ObservableProperty]
private ObservableCollection<ExtendedChar> characters = new();
/// <summary>
/// Constructor of <see cref="DataLine"/>.
/// </summary>
/// <param name="characters">characters collection</param>
public DataLine(IEnumerable<ExtendedChar> characters)
{
foreach (var character in characters)
{
this.Characters.Add(character);
}
}
}