@@ -34,6 +34,7 @@ public abstract record Content
3434public record DocumentContent ( string Id , string Name , string Mime , string Sha256 ) : Content
3535{
3636 /// <inheritdoc/>
37+ [ JsonIgnore ]
3738 public override ContentType Type => ContentType . Document ;
3839}
3940
@@ -46,6 +47,7 @@ public record DocumentContent(string Id, string Name, string Mime, string Sha256
4647public record ContactContent ( string Name , string Surname , string [ ] Numbers ) : Content
4748{
4849 /// <inheritdoc/>
50+ [ JsonIgnore ]
4951 public override ContentType Type => ContentType . Contact ;
5052}
5153
@@ -56,6 +58,7 @@ public record ContactContent(string Name, string Surname, string[] Numbers) : Co
5658public record TextContent ( string Text ) : Content
5759{
5860 /// <inheritdoc/>
61+ [ JsonIgnore ]
5962 public override ContentType Type => ContentType . Text ;
6063}
6164
@@ -76,6 +79,7 @@ public record Location(double Latitude, double Longitude);
7679public record LocationContent ( Location Location , string ? Address , string ? Name , string ? Url ) : Content
7780{
7881 /// <inheritdoc/>
82+ [ JsonIgnore ]
7983 public override ContentType Type => ContentType . Location ;
8084}
8185
@@ -96,6 +100,7 @@ public abstract record MediaContent(string Id, string Mime, string Sha256) : Con
96100public record AudioContent ( string Id , string Mime , string Sha256 ) : MediaContent ( Id , Mime , Sha256 )
97101{
98102 /// <inheritdoc/>
103+ [ JsonIgnore ]
99104 public override ContentType Type => ContentType . Audio ;
100105}
101106
@@ -108,6 +113,7 @@ public record AudioContent(string Id, string Mime, string Sha256) : MediaContent
108113public record ImageContent ( string Id , string Mime , string Sha256 ) : MediaContent ( Id , Mime , Sha256 )
109114{
110115 /// <inheritdoc/>
116+ [ JsonIgnore ]
111117 public override ContentType Type => ContentType . Image ;
112118}
113119
@@ -120,6 +126,7 @@ public record ImageContent(string Id, string Mime, string Sha256) : MediaContent
120126public record VideoContent ( string Id , string Mime , string Sha256 ) : MediaContent ( Id , Mime , Sha256 )
121127{
122128 /// <inheritdoc/>
129+ [ JsonIgnore ]
123130 public override ContentType Type => ContentType . Video ;
124131}
125132
@@ -130,5 +137,6 @@ public record VideoContent(string Id, string Mime, string Sha256) : MediaContent
130137public record UnknownContent ( JsonElement Raw ) : Content
131138{
132139 /// <inheritdoc/>
140+ [ JsonIgnore ]
133141 public override ContentType Type => ContentType . Unknown ;
134142}
0 commit comments