jellyfin/MediaBrowser.Model/Activity/ActivityLogEntry.cs

86 lines
2.4 KiB
C#
Raw Normal View History

using System;
using Microsoft.Extensions.Logging;
2018-12-27 18:27:57 -05:00
namespace MediaBrowser.Model.Activity
{
2021-07-26 17:02:32 -04:00
/// <summary>
/// An activity log entry.
/// </summary>
2018-12-27 18:27:57 -05:00
public class ActivityLogEntry
{
2021-07-26 17:02:32 -04:00
/// <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;
}
2018-12-27 18:27:57 -05:00
/// <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>
2021-07-26 17:02:32 -04:00
public string? Overview { get; set; }
2018-12-27 18:27:57 -05:00
/// <summary>
/// Gets or sets the short overview.
/// </summary>
/// <value>The short overview.</value>
2021-07-26 17:02:32 -04:00
public string? ShortOverview { get; set; }
2018-12-27 18:27:57 -05:00
/// <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>
2021-07-26 17:02:32 -04:00
public string? ItemId { get; set; }
2018-12-27 18:27:57 -05:00
/// <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>
2020-05-02 18:32:22 -04:00
[Obsolete("UserPrimaryImageTag is not used.")]
2021-07-26 17:02:32 -04:00
public string? UserPrimaryImageTag { get; set; }
2018-12-27 18:27:57 -05:00
/// <summary>
/// Gets or sets the log severity.
/// </summary>
/// <value>The log severity.</value>
public LogLevel Severity { get; set; }
2018-12-27 18:27:57 -05:00
}
}