From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/Devices/ContentUploadHistory.cs | 15 +++++ MediaBrowser.Model/Devices/DeviceInfo.cs | 69 ++++++++++++++++++++++ MediaBrowser.Model/Devices/DeviceQuery.cs | 22 +++++++ MediaBrowser.Model/Devices/DevicesOptions.cs | 24 ++++++++ MediaBrowser.Model/Devices/LocalFileInfo.cs | 11 ++++ 5 files changed, 141 insertions(+) create mode 100644 MediaBrowser.Model/Devices/ContentUploadHistory.cs create mode 100644 MediaBrowser.Model/Devices/DeviceInfo.cs create mode 100644 MediaBrowser.Model/Devices/DeviceQuery.cs create mode 100644 MediaBrowser.Model/Devices/DevicesOptions.cs create mode 100644 MediaBrowser.Model/Devices/LocalFileInfo.cs (limited to 'MediaBrowser.Model/Devices') diff --git a/MediaBrowser.Model/Devices/ContentUploadHistory.cs b/MediaBrowser.Model/Devices/ContentUploadHistory.cs new file mode 100644 index 000000000..2b344df24 --- /dev/null +++ b/MediaBrowser.Model/Devices/ContentUploadHistory.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Model.Devices +{ + public class ContentUploadHistory + { + public string DeviceId { get; set; } + public LocalFileInfo[] FilesUploaded { get; set; } + + public ContentUploadHistory() + { + FilesUploaded = new LocalFileInfo[] { }; + } + } +} diff --git a/MediaBrowser.Model/Devices/DeviceInfo.cs b/MediaBrowser.Model/Devices/DeviceInfo.cs new file mode 100644 index 000000000..590dc5eb3 --- /dev/null +++ b/MediaBrowser.Model/Devices/DeviceInfo.cs @@ -0,0 +1,69 @@ +using MediaBrowser.Model.Session; +using System; + +namespace MediaBrowser.Model.Devices +{ + public class DeviceInfo + { + /// + /// Gets or sets the name of the reported. + /// + /// The name of the reported. + public string ReportedName { get; set; } + /// + /// Gets or sets the name of the custom. + /// + /// The name of the custom. + public string CustomName { get; set; } + /// + /// Gets or sets the camera upload path. + /// + /// The camera upload path. + public string CameraUploadPath { get; set; } + + public string Name { get; set; } + + /// + /// Gets or sets the identifier. + /// + /// The identifier. + public string Id { get; set; } + /// + /// Gets or sets the last name of the user. + /// + /// The last name of the user. + public string LastUserName { get; set; } + /// + /// Gets or sets the name of the application. + /// + /// The name of the application. + public string AppName { get; set; } + /// + /// Gets or sets the application version. + /// + /// The application version. + public string AppVersion { get; set; } + /// + /// Gets or sets the last user identifier. + /// + /// The last user identifier. + public Guid LastUserId { get; set; } + /// + /// Gets or sets the date last modified. + /// + /// The date last modified. + public DateTime DateLastActivity { get; set; } + /// + /// Gets or sets the capabilities. + /// + /// The capabilities. + public ClientCapabilities Capabilities { get; set; } + + public DeviceInfo() + { + Capabilities = new ClientCapabilities(); + } + + public string IconUrl { get; set; } + } +} diff --git a/MediaBrowser.Model/Devices/DeviceQuery.cs b/MediaBrowser.Model/Devices/DeviceQuery.cs new file mode 100644 index 000000000..9ceea1ea8 --- /dev/null +++ b/MediaBrowser.Model/Devices/DeviceQuery.cs @@ -0,0 +1,22 @@ + +namespace MediaBrowser.Model.Devices +{ + public class DeviceQuery + { + /// + /// Gets or sets a value indicating whether [supports unique identifier]. + /// + /// null if [supports unique identifier] contains no value, true if [supports unique identifier]; otherwise, false. + public bool? SupportsPersistentIdentifier { get; set; } + /// + /// Gets or sets a value indicating whether [supports synchronize]. + /// + /// null if [supports synchronize] contains no value, true if [supports synchronize]; otherwise, false. + public bool? SupportsSync { get; set; } + /// + /// Gets or sets the user identifier. + /// + /// The user identifier. + public string UserId { get; set; } + } +} diff --git a/MediaBrowser.Model/Devices/DevicesOptions.cs b/MediaBrowser.Model/Devices/DevicesOptions.cs new file mode 100644 index 000000000..5bcdd1a82 --- /dev/null +++ b/MediaBrowser.Model/Devices/DevicesOptions.cs @@ -0,0 +1,24 @@ +using System; + +namespace MediaBrowser.Model.Devices +{ + public class DevicesOptions + { + public string[] EnabledCameraUploadDevices { get; set; } + public string CameraUploadPath { get; set; } + public bool EnableCameraUploadSubfolders { get; set; } + + public DevicesOptions() + { + EnabledCameraUploadDevices = new string[] {}; + } + } + + public class DeviceOptions + { + public string[] EnabledCameraUploadDevices { get; set; } + public string CameraUploadPath { get; set; } + public bool EnableCameraUploadSubfolders { get; set; } + public string CustomName { get; set; } + } +} diff --git a/MediaBrowser.Model/Devices/LocalFileInfo.cs b/MediaBrowser.Model/Devices/LocalFileInfo.cs new file mode 100644 index 000000000..e7a78bf8b --- /dev/null +++ b/MediaBrowser.Model/Devices/LocalFileInfo.cs @@ -0,0 +1,11 @@ + +namespace MediaBrowser.Model.Devices +{ + public class LocalFileInfo + { + public string Name { get; set; } + public string Id { get; set; } + public string Album { get; set; } + public string MimeType { get; set; } + } +} -- cgit v1.2.3