| | | 1 | | using System; |
| | | 2 | | using Microsoft.Extensions.Logging; |
| | | 3 | | |
| | | 4 | | namespace MediaBrowser.Model.Activity |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// An activity log entry. |
| | | 8 | | /// </summary> |
| | | 9 | | public class ActivityLogEntry |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Initializes a new instance of the <see cref="ActivityLogEntry"/> class. |
| | | 13 | | /// </summary> |
| | | 14 | | /// <param name="name">The name.</param> |
| | | 15 | | /// <param name="type">The type.</param> |
| | | 16 | | /// <param name="userId">The user id.</param> |
| | | 17 | | public ActivityLogEntry(string name, string type, Guid userId) |
| | | 18 | | { |
| | 36 | 19 | | Name = name; |
| | 36 | 20 | | Type = type; |
| | 36 | 21 | | UserId = userId; |
| | 36 | 22 | | } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets or sets the identifier. |
| | | 26 | | /// </summary> |
| | | 27 | | /// <value>The identifier.</value> |
| | | 28 | | public long Id { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Gets or sets the name. |
| | | 32 | | /// </summary> |
| | | 33 | | /// <value>The name.</value> |
| | | 34 | | public string Name { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Gets or sets the overview. |
| | | 38 | | /// </summary> |
| | | 39 | | /// <value>The overview.</value> |
| | | 40 | | public string? Overview { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the short overview. |
| | | 44 | | /// </summary> |
| | | 45 | | /// <value>The short overview.</value> |
| | | 46 | | public string? ShortOverview { get; set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets or sets the type. |
| | | 50 | | /// </summary> |
| | | 51 | | /// <value>The type.</value> |
| | | 52 | | public string Type { get; set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets the item identifier. |
| | | 56 | | /// </summary> |
| | | 57 | | /// <value>The item identifier.</value> |
| | | 58 | | public string? ItemId { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets the date. |
| | | 62 | | /// </summary> |
| | | 63 | | /// <value>The date.</value> |
| | | 64 | | public DateTime Date { get; set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// Gets or sets the user identifier. |
| | | 68 | | /// </summary> |
| | | 69 | | /// <value>The user identifier.</value> |
| | | 70 | | public Guid UserId { get; set; } |
| | | 71 | | |
| | | 72 | | /// <summary> |
| | | 73 | | /// Gets or sets the user primary image tag. |
| | | 74 | | /// </summary> |
| | | 75 | | /// <value>The user primary image tag.</value> |
| | | 76 | | [Obsolete("UserPrimaryImageTag is not used.")] |
| | | 77 | | public string? UserPrimaryImageTag { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets the log severity. |
| | | 81 | | /// </summary> |
| | | 82 | | /// <value>The log severity.</value> |
| | | 83 | | public LogLevel Severity { get; set; } |
| | | 84 | | } |
| | | 85 | | } |