< Summary

Information
Class: AppRepository.ApiServices.OzonApi.Filters.Chat
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/Chat.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 42
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_CreatedAt()100%210%
get_ChatId()100%210%
get_ChatStatus()100%210%
get_ChatType()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/Chat.cs

#LineLine coverage
 1using System;
 2using System.Text.Json.Serialization;
 3
 4namespace AppRepository.ApiServices.OzonApi.Filters
 5{
 6    /// <summary>
 7    /// Информация о чате
 8    /// </summary>
 9    public class Chat
 10    {
 11        /// <summary>
 12        /// Дата создания чата
 13        /// </summary>
 14        [JsonPropertyName("created_at")]
 015        public DateTime CreatedAt { get; set; }
 16
 17        /// <summary>
 18        /// Идентификатор чата
 19        /// </summary>
 20        [JsonPropertyName("chat_id")]
 021        public string? ChatId { get; set; } = string.Empty;
 22
 23        /// <summary>
 24        /// Статус чата:
 25        /// All — все чаты.
 26        /// Opened — открытые чаты.
 27        /// Closed — закрытые чаты.
 28        /// UNSPECIFIED — не определено.
 29        /// </summary>
 30        [JsonPropertyName("chat_status")]
 031        public string? ChatStatus { get; set; } = string.Empty;
 32
 33        /// <summary>
 34        /// Тип чата:
 35        /// Seller_Support — чат с поддержкой.
 36        /// Buyer_Seller — чат с покупателем.
 37        /// UNSPECIFIED — не определено.
 38        /// </summary>
 39        [JsonPropertyName("chat_type")]
 040        public string? ChatType { get; set; } = string.Empty;
 41    }
 42}