Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
namespace adas_core.Domain.Models;
|
||||
|
||||
public class Note
|
||||
{
|
||||
public string? CommentType { get; set; } = string.Empty;
|
||||
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
|
||||
public DateTime? EnteredTime { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
|
||||
if (!string.IsNullOrEmpty(CommentType)) items.Add($", commentType: {CommentType}");
|
||||
if (!string.IsNullOrEmpty(Comment)) items.Add($"comment: {Comment}");
|
||||
if (EnteredTime != null) items.Add($", enteredTime: {EnteredTime}");
|
||||
|
||||
|
||||
return "note[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user