Added since_tizen tag 59/136759/2 accepted/tizen/unified/20170706.194141 submit/tizen/20170706.101713
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 3 Jul 2017 06:11:58 +0000 (15:11 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 3 Jul 2017 08:43:35 +0000 (17:43 +0900)
Change-Id: I8c9780fc9767aafa602e3155f55f510718b407d3
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Tizen.Content.Download/Tizen.Content.Download.csproj
Tizen.Content.Download/Tizen.Content.Download/DownloadEnumerator.cs
Tizen.Content.Download/Tizen.Content.Download/Notification.cs
Tizen.Content.Download/Tizen.Content.Download/ProgressChangedEventArgs.cs
Tizen.Content.Download/Tizen.Content.Download/Request.cs
Tizen.Content.Download/Tizen.Content.Download/StateChangedEventArgs.cs
packaging/csapi-download.spec

index 758b844..6dc1bea 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
-    <Version>1.0.6</Version>
+    <Version>1.0.7</Version>
     <Authors>Samsung Electronics</Authors>
     <Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>
     <Description>Provides the Download API for Tizen .NET</Description>
index 2091ee7..facfde5 100755 (executable)
@@ -19,81 +19,99 @@ namespace Tizen.Content.Download
     /// <summary>
     /// Enumeration for download state.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public enum DownloadState
     {
         /// <summary>
         /// Unhandled exception
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         None = 0,
         /// <summary>
         /// Ready to download
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Ready,
         /// <summary>
         /// Queued to start downloading
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Queued,
         /// <summary>
         /// Currently downloading
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Downloading,
         /// <summary>
         /// Download is paused and can be resumed
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Paused,
         /// <summary>
         /// The download is completed
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Completed,
         /// <summary>
         /// The download failed
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Failed,
         /// <summary>
         /// User canceled the download request
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Canceled
     }
 
     /// <summary>
     /// Enumeration for network type.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public enum NetworkType
     {
         /// <summary>
         /// Download is available through data network
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         DataNetwork = 0,
         /// <summary>
         /// Download is available through WiFi
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Wifi,
         /// <summary>
         /// Download is available through WiFi-Direct
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         WifiDirect,
         /// <summary>
         /// Download is available through either data network or WiFi
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         All
     }
 
     /// <summary>
     /// Enumeration for notification type.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public enum NotificationType
     {
         /// <summary>
         /// Do not register notification
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         None = 0,
         /// <summary>
         /// Completion notification for success state and failed state
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         CompleteOnly,
         /// <summary>
         /// All download notifications for ongoing state, success state and failed state
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         All
     }
 
index 0524e5b..1b984b2 100755 (executable)
@@ -22,6 +22,7 @@ namespace Tizen.Content.Download
     /// <summary>
     /// The Notification class consists of all the properties required to set notifications for download operation.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class Notification
     {
         private int _downloadId;
@@ -29,6 +30,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Creates a Notification object
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Notification(int requestId)
         {
             _downloadId = requestId;
@@ -38,6 +40,7 @@ namespace Tizen.Content.Download
         /// Title of the notification.
         /// If user tries to get before setting, empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -69,6 +72,7 @@ namespace Tizen.Content.Download
         /// Description of the notification.
         /// If user tries to get before setting, empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -100,6 +104,7 @@ namespace Tizen.Content.Download
         /// Type of Notification.
         /// If user tries to get before setting, default NotificationType None is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -131,6 +136,7 @@ namespace Tizen.Content.Download
         /// AppControl for an ongoing download notification.
         /// If user tries to get before setting, null is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// When the notification message is clicked, the action is decided by the app control.
@@ -165,6 +171,7 @@ namespace Tizen.Content.Download
         /// AppControl for a completed download notification.
         /// If user tries to get before setting, null is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// When the notification message is clicked, the action is decided by the app control
@@ -199,6 +206,7 @@ namespace Tizen.Content.Download
         /// AppControl for a failed download notification.
         /// If user tries to get before setting, null is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// When the notification message is clicked, the action is decided by the app control
index 10aa12d..3e5d169 100755 (executable)
@@ -21,6 +21,7 @@ namespace Tizen.Content.Download
     /// <summary>
     /// An extended EventArgs class which contains the size of received data in bytes.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class ProgressChangedEventArgs : EventArgs
     {
         private ulong _size = 0;
@@ -33,6 +34,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Received data size in bytes.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public ulong ReceivedDataSize
         {
             get
index d7fdfd7..72b86e6 100755 (executable)
@@ -23,6 +23,7 @@ namespace Tizen.Content.Download
     /// <summary>
     /// The Request class provides functions to create and manage a single download request.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class Request : IDisposable
     {
         private int _downloadId;
@@ -37,6 +38,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Creates a Request object.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="url"> URL to download</param>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
@@ -65,6 +67,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Creates a Request object.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="url"> URL to download</param>
         /// <param name="destinationPath"> Directory path where downloaded file is stored </param>
         /// <param name="fileName"> Name of the downloaded file </param>
@@ -120,6 +123,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Creates a Request object.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="url"> URL to download</param>
         /// <param name="destinationPath"> Directory path where downloaded file is stored </param>
         /// <param name="fileName"> Name of the downloaded file </param>
@@ -181,6 +185,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Event that occurs when the download state changes.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -208,6 +213,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Event that occurs when the download progress changes.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -236,6 +242,7 @@ namespace Tizen.Content.Download
         /// Absolute path where the file will be downloaded.
         /// If you try to get this property value before calling Start(), an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// Returns empty string if download is not completed or if state has not yet changed to Completed or if any other error occurs.
@@ -262,6 +269,7 @@ namespace Tizen.Content.Download
         /// MIME type of the downloaded content.
         /// If you try to get this property value before calling Start(), an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -284,6 +292,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Current state of the download.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -308,6 +317,7 @@ namespace Tizen.Content.Download
         /// This can be defined with reference of HTTP response header data. The content name can be received when HTTP response header is received.
         /// If you try to get this property value before calling Start(), an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -332,6 +342,7 @@ namespace Tizen.Content.Download
         /// This information is received from the server. If the server does not send the total size of the content, content_size is set to zero.
         /// If you try to get this property value before calling Start(), 0 is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
@@ -355,6 +366,7 @@ namespace Tizen.Content.Download
         /// HTTP status code when a download exception occurs.
         /// If you try to get this property value before calling Start(), 0 is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// State of download request must be DownlodState.Failed.
@@ -381,6 +393,7 @@ namespace Tizen.Content.Download
         /// ETag value from the HTTP response header when making a HTTP request for resume.
         /// If you try to get this property value before calling Start() or if any other error occurs, an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The etag value is available or not depending on the web server. If not available, then on get of the property null is returned.
@@ -407,6 +420,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Contains properties required for creating download notifications.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <remarks>
         /// When the notification message is clicked, the action taken by the system is decided by the app control properties of the NotificationProperties instance.
         /// If the app control is not set, the following default operation is executed when the notification message is clicked:
@@ -425,6 +439,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Full path of the temporary file which stores downloaded content.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The download state must be one of the states after Downloading.
@@ -450,6 +465,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// URL to download.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// Should be set before calling Start().
@@ -486,6 +502,7 @@ namespace Tizen.Content.Download
         /// The file will be downloaded only under the allowed network.
         /// If you try to get this property value before setting or if any other error occurs, default value NetworkType All is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <feature>http://tizen.org/feature/network.wifi</feature>
         /// <feature>http://tizen.org/feature/network.wifi.direct</feature>
@@ -524,6 +541,7 @@ namespace Tizen.Content.Download
         /// The file will be downloaded to the set destination file path. The downloaded file is saved to an auto-generated file name in the destination. If the destination is not specified, the file will be downloaded to default storage.
         /// If you try to get this property value before setting or if any other error occurs, an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// Should be set before calling Start().
@@ -558,6 +576,7 @@ namespace Tizen.Content.Download
         /// The file will be saved in the specified destination or default storage with the set file name. If the file name is not specified, the downloaded file will be saved with an auto-generated file name in the destination.
         /// If you try to get this property value before setting or if any other error occurs, an empty string is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// Should be set before calling Start().
@@ -593,6 +612,7 @@ namespace Tizen.Content.Download
         /// If this option is enabled, the previous downloading item is restarted automatically as soon as the download daemon is restarted. The download progress continues after the client process is terminated.
         /// If you try to get this property value before setting, default value false is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The default value is false.
@@ -629,6 +649,7 @@ namespace Tizen.Content.Download
         /// The given HTTP header field will be included with the HTTP request of the download request.
         /// If you try to get this property value before setting, an empty dictionary is returned.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <remarks>
         /// HTTP header fields should be set before calling Start().
         /// HTTP header fields can be removed before calling Start().
@@ -645,6 +666,7 @@ namespace Tizen.Content.Download
         /// Sets the directory path of a temporary file used in a previous download request.
         /// This is only useful when resuming download to make HTTP request header at the client side. Otherwise, the path is ignored.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// If the etag value is not present in the download database, it is not useful to set the temporary file path.
@@ -666,6 +688,7 @@ namespace Tizen.Content.Download
         /// Starts or resumes download.
         /// Starts to download the current URL, or resumes the download if paused.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The URL is the mandatory information to start the download.
@@ -695,6 +718,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Pauses download request.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The paused download request can be restarted with Start() or canceled with Cancel().
@@ -714,6 +738,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Cancels download request.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// The canceled download can be restarted with Start().
@@ -733,6 +758,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Releases all resources used by the Request class.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <remarks>
         /// After calling this method, download request related data exists in the download database for a certain period of time. Within that time, it is possible to use other APIs with this data.
@@ -749,6 +775,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Deletes the corresponding download request.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/download</privilege>
         /// <exception cref="ArgumentException">Thrown when it is failed due to an invalid parameter.</exception>
         /// <exception cref="InvalidOperationException">Thrown when it is failed due to invalid operation</exception>
index 9ad4339..e4c56e8 100755 (executable)
@@ -21,6 +21,7 @@ namespace Tizen.Content.Download
     /// <summary>
     /// An extended EventArgs class which contains the changed download state.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class StateChangedEventArgs : EventArgs
     {
         private DownloadState _state;
@@ -33,6 +34,7 @@ namespace Tizen.Content.Download
         /// <summary>
         /// Present download state.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public DownloadState State
         {
             get
index a27059f..a6ba798 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       csapi-download
 Summary:    Tizen Download API for C#
-Version:    1.0.6
+Version:    1.0.7
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0