diff options
| author | LJQ <leejunquan7@gmail.com> | 2023-10-18 01:40:36 +0800 |
|---|---|---|
| committer | LJQ <leejunquan7@gmail.com> | 2023-10-18 01:40:36 +0800 |
| commit | 98bc2fea8b20a52edfd142fbbf2ffbf79b0608b0 (patch) | |
| tree | fced4af920827194b0deadb4b361c7aa4e7c3421 /Jellyfin.Server.Implementations/Devices | |
| parent | 2f9b44fcd04bf7974d42b6db3f9e7e500ae8093c (diff) | |
Removed dupe ToDeviceInfo
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices')
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index 807d703eb..d8eee1246 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -226,24 +226,7 @@ namespace Jellyfin.Server.Implementations.Devices || !GetCapabilities(deviceId).SupportsPersistentIdentifier; } - private DeviceInfo ToDeviceInfo(Device authInfo) - { - var caps = GetCapabilities(authInfo.DeviceId); - - return new DeviceInfo - { - AppName = authInfo.AppName, - AppVersion = authInfo.AppVersion, - Id = authInfo.DeviceId, - LastUserId = authInfo.UserId, - LastUserName = authInfo.User.Username, - Name = authInfo.DeviceName, - DateLastActivity = authInfo.DateLastActivity, - IconUrl = caps.IconUrl - }; - } - - private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options) + private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options = null) { var caps = GetCapabilities(authInfo.DeviceId); |
