aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Activity/ActivityLogEntry.cs
blob: f83dde56d4979a2adbcdc3dea834a3083081df01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using System;
using Microsoft.Extensions.Logging;

namespace MediaBrowser.Model.Activity
{
    /// <summary>
    /// An activity log entry.
    /// </summary>
    public class ActivityLogEntry
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ActivityLogEntry"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="type">The type.</param>
        /// <param name="userId">The user id.</param>
        public ActivityLogEntry(string name, string type, Guid userId)
        {
            Name = name;
            Type = type;
            UserId = userId;
        }

        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        /// <value>The identifier.</value>
        public long Id { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the overview.
        /// </summary>
        /// <value>The overview.</value>
        public string? Overview { get; set; }

        /// <summary>
        /// Gets or sets the short overview.
        /// </summary>
        /// <value>The short overview.</value>
        public string? ShortOverview { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public string Type { get; set; }

        /// <summary>
        /// Gets or sets the item identifier.
        /// </summary>
        /// <value>The item identifier.</value>
        public string? ItemId { get; set; }

        /// <summary>
        /// Gets or sets the date.
        /// </summary>
        /// <value>The date.</value>
        public DateTime Date { get; set; }

        /// <summary>
        /// Gets or sets the user identifier.
        /// </summary>
        /// <value>The user identifier.</value>
        public Guid UserId { get; set; }

        /// <summary>
        /// Gets or sets the user primary image tag.
        /// </summary>
        /// <value>The user primary image tag.</value>
        [Obsolete("UserPrimaryImageTag is not used.")]
        public string? UserPrimaryImageTag { get; set; }

        /// <summary>
        /// Gets or sets the log severity.
        /// </summary>
        /// <value>The log severity.</value>
        public LogLevel Severity { get; set; }
    }
}