aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/ClientLogDtos
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/ClientLogDtos')
-rw-r--r--Jellyfin.Api/Models/ClientLogDtos/ClientLogDocumentResponseDto.cs22
-rw-r--r--Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs30
2 files changed, 52 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/ClientLogDtos/ClientLogDocumentResponseDto.cs b/Jellyfin.Api/Models/ClientLogDtos/ClientLogDocumentResponseDto.cs
new file mode 100644
index 000000000..44509a9c0
--- /dev/null
+++ b/Jellyfin.Api/Models/ClientLogDtos/ClientLogDocumentResponseDto.cs
@@ -0,0 +1,22 @@
+namespace Jellyfin.Api.Models.ClientLogDtos
+{
+ /// <summary>
+ /// Client log document response dto.
+ /// </summary>
+ public class ClientLogDocumentResponseDto
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ClientLogDocumentResponseDto"/> class.
+ /// </summary>
+ /// <param name="fileName">The file name.</param>
+ public ClientLogDocumentResponseDto(string fileName)
+ {
+ FileName = fileName;
+ }
+
+ /// <summary>
+ /// Gets the resulting filename.
+ /// </summary>
+ public string FileName { get; }
+ }
+}
diff --git a/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs
new file mode 100644
index 000000000..9bf9be0a4
--- /dev/null
+++ b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs
@@ -0,0 +1,30 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using Microsoft.Extensions.Logging;
+
+namespace Jellyfin.Api.Models.ClientLogDtos
+{
+ /// <summary>
+ /// The client log dto.
+ /// </summary>
+ public class ClientLogEventDto
+ {
+ /// <summary>
+ /// Gets or sets the event timestamp.
+ /// </summary>
+ [Required]
+ public DateTime Timestamp { get; set; }
+
+ /// <summary>
+ /// Gets or sets the log level.
+ /// </summary>
+ [Required]
+ public LogLevel Level { get; set; }
+
+ /// <summary>
+ /// Gets or sets the log message.
+ /// </summary>
+ [Required]
+ public string Message { get; set; } = string.Empty;
+ }
+}