瀏覽代碼

Made UpdateUserItemDataDto standalone object.

ArabCoders 1 年之前
父節點
當前提交
22c90141e7
共有 1 個文件被更改,包括 46 次插入7 次删除
  1. 46 7
      MediaBrowser.Model/Dto/UpdateUserItemDataDto.cs

+ 46 - 7
MediaBrowser.Model/Dto/UpdateUserItemDataDto.cs

@@ -1,38 +1,77 @@
+#nullable disable
+using System;
+
 namespace MediaBrowser.Model.Dto
 namespace MediaBrowser.Model.Dto
 {
 {
     /// <summary>
     /// <summary>
     /// This is used by the api to get information about a item user data.
     /// This is used by the api to get information about a item user data.
     /// </summary>
     /// </summary>
-    public class UpdateUserItemDataDto : UserItemDataDto
+    public class UpdateUserItemDataDto
     {
     {
+        /// <summary>
+        /// Gets or sets the rating.
+        /// </summary>
+        /// <value>The rating.</value>
+        public double? Rating { get; set; }
+
+        /// <summary>
+        /// Gets or sets the played percentage.
+        /// </summary>
+        /// <value>The played percentage.</value>
+        public double? PlayedPercentage { get; set; }
+
+        /// <summary>
+        /// Gets or sets the unplayed item count.
+        /// </summary>
+        /// <value>The unplayed item count.</value>
+        public int? UnplayedItemCount { get; set; }
+
         /// <summary>
         /// <summary>
         /// Gets or sets the playback position ticks.
         /// Gets or sets the playback position ticks.
         /// </summary>
         /// </summary>
         /// <value>The playback position ticks.</value>
         /// <value>The playback position ticks.</value>
-        public new long? PlaybackPositionTicks { get; set; }
+        public long? PlaybackPositionTicks { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the play count.
         /// Gets or sets the play count.
         /// </summary>
         /// </summary>
         /// <value>The play count.</value>
         /// <value>The play count.</value>
-        public new int? PlayCount { get; set; }
+        public int? PlayCount { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this instance is favorite.
         /// Gets or sets a value indicating whether this instance is favorite.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
-        public new bool? IsFavorite { get; set; }
+        public bool? IsFavorite { get; set; }
 
 
         /// <summary>
         /// <summary>
-        /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
+        /// Gets or sets a value indicating whether this <see cref="UpdateUserItemDataDto" /> is likes.
         /// </summary>
         /// </summary>
         /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
         /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
-        public new bool? Likes { get; set; }
+        public bool? Likes { get; set; }
+
+        /// <summary>
+        /// Gets or sets the last played date.
+        /// </summary>
+        /// <value>The last played date.</value>
+        public DateTime? LastPlayedDate { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
         /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
-        public new bool? Played { get; set; }
+        public bool? Played { get; set; }
+
+        /// <summary>
+        /// Gets or sets the key.
+        /// </summary>
+        /// <value>The key.</value>
+        public string Key { get; set; }
+
+        /// <summary>
+        /// Gets or sets the item identifier.
+        /// </summary>
+        /// <value>The item identifier.</value>
+        public string ItemId { get; set; }
     }
     }
 }
 }