Pārlūkot izejas kodu

Add AccessToken to device

Patrick Barron 4 gadi atpakaļ
vecāks
revīzija
12fa5c0c41
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      Jellyfin.Data/Entities/Security/Device.cs

+ 8 - 1
Jellyfin.Data/Entities/Security/Device.cs

@@ -13,13 +13,15 @@ namespace Jellyfin.Data.Entities.Security
         /// Initializes a new instance of the <see cref="Device"/> class.
         /// Initializes a new instance of the <see cref="Device"/> class.
         /// </summary>
         /// </summary>
         /// <param name="userId">The user id.</param>
         /// <param name="userId">The user id.</param>
+        /// <param name="accessToken">The access token.</param>
         /// <param name="appName">The app name.</param>
         /// <param name="appName">The app name.</param>
         /// <param name="appVersion">The app version.</param>
         /// <param name="appVersion">The app version.</param>
         /// <param name="deviceName">The device name.</param>
         /// <param name="deviceName">The device name.</param>
         /// <param name="deviceId">The device id.</param>
         /// <param name="deviceId">The device id.</param>
-        public Device(Guid userId, string appName, string appVersion, string deviceName, string deviceId)
+        public Device(Guid userId, string accessToken, string appName, string appVersion, string deviceName, string deviceId)
         {
         {
             UserId = userId;
             UserId = userId;
+            AccessToken = accessToken;
             AppName = appName;
             AppName = appName;
             AppVersion = appVersion;
             AppVersion = appVersion;
             DeviceName = deviceName;
             DeviceName = deviceName;
@@ -43,6 +45,11 @@ namespace Jellyfin.Data.Entities.Security
         /// </summary>
         /// </summary>
         public Guid UserId { get; private set; }
         public Guid UserId { get; private set; }
 
 
+        /// <summary>
+        /// Gets or sets the access token.
+        /// </summary>
+        public string AccessToken { get; set; }
+
         /// <summary>
         /// <summary>
         /// Gets or sets the app name.
         /// Gets or sets the app name.
         /// </summary>
         /// </summary>