using MultiTerm.Core.Types; using System.Collections.ObjectModel; namespace MultiTerm.Core.ViewModel; public interface ICommunicationDataViewModel where T_Data : IDataViewModel { /// /// Collection of data in context of a communication protocol. /// ObservableCollection Data { get; } /// /// String representation of . /// string DataAsString { get; } /// /// Collection of selected items of the . /// May be set externally. /// ObservableCollection Selected { get; set; } /// /// Currently selected NewlineSeparator to group the into lines. /// NewlineSeparatorType NewlineSeparator { get; set; } /// /// Method to insert raw data into the Collection. /// Also updates the property. /// /// collection of new data to insert void HandleNewData(IEnumerable data); /// /// Allows to clear the data. /// void Clear(); }