diff --git a/MultiTerm.Protocols/Model/ExtendedChar.cs b/MultiTerm.Protocols/Model/ExtendedChar.cs
index 004c65a..898eaec 100644
--- a/MultiTerm.Protocols/Model/ExtendedChar.cs
+++ b/MultiTerm.Protocols/Model/ExtendedChar.cs
@@ -4,7 +4,7 @@ namespace MultiTerm.Protocols.Model;
///
/// A class that represents a Character and contains some additional information and methods.
-/// The time of instanciation is represented with the property.
+/// A time can be stored in combination with this Character using the property. E.g. to represent arrived or sent time.
/// Several methods to display the Character in other formats than Unicode are provided.
///
public class ExtendedChar
@@ -15,14 +15,32 @@ public class ExtendedChar
public char Character { get; set; }
///
- /// Time of instanciation of this class.
+ /// Time that is associated with the .
+ /// E.g. to represent arrived or sent time.
///
- public TimeOnly TimeOfCreation { get; private set; }
+ public TimeOnly Time { get; private set; }
- public ExtendedChar()
+ ///
+ /// Creates an instance of ExtendedChar with a given .
+ /// Sets to now.
+ ///
+ /// data
+ public ExtendedChar(char character)
{
// initialize time with now
- this.TimeOfCreation = TimeOnly.FromDateTime(DateTime.Now);
+ this.Time = TimeOnly.FromDateTime(DateTime.Now);
+ this.Character = character;
+ }
+
+ ///
+ /// Creates an instance of ExtendedChar with a given and .
+ ///
+ /// data
+ /// time
+ public ExtendedChar(char character, TimeOnly time)
+ {
+ this.Character = character;
+ this.Time = time;
}
public override string ToString()