diff options
Diffstat (limited to 'MediaBrowser.Model/Devices')
| -rw-r--r-- | MediaBrowser.Model/Devices/ContentUploadHistory.cs | 15 | ||||
| -rw-r--r-- | MediaBrowser.Model/Devices/DeviceInfo.cs | 69 | ||||
| -rw-r--r-- | MediaBrowser.Model/Devices/DeviceQuery.cs | 22 | ||||
| -rw-r--r-- | MediaBrowser.Model/Devices/DevicesOptions.cs | 24 | ||||
| -rw-r--r-- | MediaBrowser.Model/Devices/LocalFileInfo.cs | 11 |
5 files changed, 141 insertions, 0 deletions
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 + { + /// <summary> + /// Gets or sets the name of the reported. + /// </summary> + /// <value>The name of the reported.</value> + public string ReportedName { get; set; } + /// <summary> + /// Gets or sets the name of the custom. + /// </summary> + /// <value>The name of the custom.</value> + public string CustomName { get; set; } + /// <summary> + /// Gets or sets the camera upload path. + /// </summary> + /// <value>The camera upload path.</value> + public string CameraUploadPath { get; set; } + + public string Name { get; set; } + + /// <summary> + /// Gets or sets the identifier. + /// </summary> + /// <value>The identifier.</value> + public string Id { get; set; } + /// <summary> + /// Gets or sets the last name of the user. + /// </summary> + /// <value>The last name of the user.</value> + public string LastUserName { get; set; } + /// <summary> + /// Gets or sets the name of the application. + /// </summary> + /// <value>The name of the application.</value> + public string AppName { get; set; } + /// <summary> + /// Gets or sets the application version. + /// </summary> + /// <value>The application version.</value> + public string AppVersion { get; set; } + /// <summary> + /// Gets or sets the last user identifier. + /// </summary> + /// <value>The last user identifier.</value> + public Guid LastUserId { get; set; } + /// <summary> + /// Gets or sets the date last modified. + /// </summary> + /// <value>The date last modified.</value> + public DateTime DateLastActivity { get; set; } + /// <summary> + /// Gets or sets the capabilities. + /// </summary> + /// <value>The capabilities.</value> + 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 + { + /// <summary> + /// Gets or sets a value indicating whether [supports unique identifier]. + /// </summary> + /// <value><c>null</c> if [supports unique identifier] contains no value, <c>true</c> if [supports unique identifier]; otherwise, <c>false</c>.</value> + public bool? SupportsPersistentIdentifier { get; set; } + /// <summary> + /// Gets or sets a value indicating whether [supports synchronize]. + /// </summary> + /// <value><c>null</c> if [supports synchronize] contains no value, <c>true</c> if [supports synchronize]; otherwise, <c>false</c>.</value> + public bool? SupportsSync { get; set; } + /// <summary> + /// Gets or sets the user identifier. + /// </summary> + /// <value>The user identifier.</value> + 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; } + } +} |
