diff --git a/ExportViewer.Core/Models/JSON/BumpedMessageMetadata.cs b/ExportViewer.Core/Models/JSON/BumpedMessageMetadata.cs index d5608d4..778832d 100644 --- a/ExportViewer.Core/Models/JSON/BumpedMessageMetadata.cs +++ b/ExportViewer.Core/Models/JSON/BumpedMessageMetadata.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; using System.Text; +using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; using System.Text.Json; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class BumpedMessageMetadata { [JsonPropertyName("bumped_message")] diff --git a/ExportViewer.Core/Models/JSON/Conversation.cs b/ExportViewer.Core/Models/JSON/Conversation.cs index 12ffb64..27513f7 100644 --- a/ExportViewer.Core/Models/JSON/Conversation.cs +++ b/ExportViewer.Core/Models/JSON/Conversation.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using System.Text.Json; @@ -7,6 +7,7 @@ namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Conversation { [JsonPropertyName("participants")] @@ -32,6 +33,7 @@ public class Conversation } + [ExcludeFromCodeCoverage] public class MilisecondEpochConverter : JsonConverter { private static readonly DateTime _epoch = new DateTime(1970 , 1 , 1 , 0 , 0 , 0 , DateTimeKind.Local); diff --git a/ExportViewer.Core/Models/JSON/ConversationItem.cs b/ExportViewer.Core/Models/JSON/ConversationItem.cs index d39805b..c308e5a 100644 --- a/ExportViewer.Core/Models/JSON/ConversationItem.cs +++ b/ExportViewer.Core/Models/JSON/ConversationItem.cs @@ -1,10 +1,12 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.Json.Serialization; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class ConversationItem { [JsonConverter(typeof(MilisecondEpochConverter))] diff --git a/ExportViewer.Core/Models/JSON/Gif.cs b/ExportViewer.Core/Models/JSON/Gif.cs index 5aded3b..d55ec89 100644 --- a/ExportViewer.Core/Models/JSON/Gif.cs +++ b/ExportViewer.Core/Models/JSON/Gif.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.Json.Serialization; using ExportViewer.Core.Models.Interfaces; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Gif : IMessage { [JsonPropertyName("uri")] diff --git a/ExportViewer.Core/Models/JSON/Participant.cs b/ExportViewer.Core/Models/JSON/Participant.cs index 4e104b1..ada6ca3 100644 --- a/ExportViewer.Core/Models/JSON/Participant.cs +++ b/ExportViewer.Core/Models/JSON/Participant.cs @@ -1,10 +1,12 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.Json.Serialization; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Participant { [JsonPropertyName("name")] diff --git a/ExportViewer.Core/Models/JSON/Photo.cs b/ExportViewer.Core/Models/JSON/Photo.cs index 0eb5d4f..3955b71 100644 --- a/ExportViewer.Core/Models/JSON/Photo.cs +++ b/ExportViewer.Core/Models/JSON/Photo.cs @@ -4,9 +4,11 @@ using ExportViewer.Core.Models.Interfaces; using System.Text.Json; using System.Text.Json.Serialization; +using System.Diagnostics.CodeAnalysis; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Photo : IMessage { [JsonPropertyName("uri")] diff --git a/ExportViewer.Core/Models/JSON/Reaction.cs b/ExportViewer.Core/Models/JSON/Reaction.cs index 5aee86d..025e7fd 100644 --- a/ExportViewer.Core/Models/JSON/Reaction.cs +++ b/ExportViewer.Core/Models/JSON/Reaction.cs @@ -2,11 +2,14 @@ using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; +using System.Diagnostics.CodeAnalysis; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Reaction { + [JsonPropertyName("reaction")] public string ReactionType { get; set; } diff --git a/ExportViewer.Core/Models/JSON/Video.cs b/ExportViewer.Core/Models/JSON/Video.cs index 5c90b4f..f64acc1 100644 --- a/ExportViewer.Core/Models/JSON/Video.cs +++ b/ExportViewer.Core/Models/JSON/Video.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.Json.Serialization; using ExportViewer.Core.Models.Interfaces; namespace ExportViewer.Core.Models.JSON { + [ExcludeFromCodeCoverage] public class Video : IMessage { [JsonPropertyName("uri")]