2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 namespace Tizen.Multimedia
20 /// Represents data for a downloading status.
22 public struct DownloadProgress
25 /// Initializes a new instance of the DownloadProgress struct.
27 /// <param name="start">The position that downloading started in percentage.</param>
28 /// <param name="current">The position indicating the current downloading progress in percentage.</param>
29 public DownloadProgress(int start, int current)
33 Log.Debug(PlayerLog.Tag, "start : " + start + ", current : " + current);
37 /// Gets or sets the start position.
39 /// <value>The position that downloading started in percentage.</value>
47 /// Gets or sets the current position.
49 /// <value>The position indicating the current downloading progress in percentage.</value>
56 public override string ToString()
58 return $"Start={ Start.ToString() }, Current={ Current.ToString() }";