Init
This commit is contained in:
25
Shared/Models/PersonComment.cs
Normal file
25
Shared/Models/PersonComment.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace View_by_Distance.Shared.Models;
|
||||
|
||||
public class PersonComment : Properties.IPersonComment
|
||||
{
|
||||
|
||||
protected readonly string _Value; // <{1}>PluralValue
|
||||
|
||||
public string Value => _Value; // <{1}>PluralValue
|
||||
|
||||
[JsonConstructor]
|
||||
public PersonComment
|
||||
(
|
||||
string value
|
||||
) => _Value = value; // <{1}>PluralValue
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
||||
return result;
|
||||
} // ...
|
||||
|
||||
}
|
Reference in New Issue
Block a user