mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
ReSharper code cleanup
This commit is contained in:
parent
8cade435d1
commit
e896af5cd0
138 changed files with 2368 additions and 2218 deletions
|
@ -18,53 +18,52 @@ namespace NzbDrone.Core.Model.Notification
|
|||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the unique id.
|
||||
/// Gets or sets the unique id.
|
||||
/// </summary>
|
||||
/// <value>The Id.</value>
|
||||
public Guid Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title for this notification.
|
||||
/// Gets or sets the title for this notification.
|
||||
/// </summary>
|
||||
/// <value>The title.</value>
|
||||
public String Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current status of this task. this field could be use to show the currently processing item in a long running task.
|
||||
/// Gets or sets the current status of this task. this field could be use to show the currently processing item in a long running task.
|
||||
/// </summary>
|
||||
/// <value>The current status.</value>
|
||||
public String CurrentStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the completion status in percent.
|
||||
/// Gets or sets the completion status in percent.
|
||||
/// </summary>
|
||||
/// <value>The percent complete.</value>
|
||||
public int PercentComplete
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToInt32(Convert.ToDouble(ProgressValue) / Convert.ToDouble(ProgressMax) * 100);
|
||||
}
|
||||
get { return Convert.ToInt32(Convert.ToDouble(ProgressValue)/Convert.ToDouble(ProgressMax)*100); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the total number of items that need to be completed
|
||||
/// Gets or sets the total number of items that need to be completed
|
||||
/// </summary>
|
||||
/// <value>The progress max.</value>
|
||||
public int ProgressMax { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of items successfully completed.
|
||||
/// Gets or sets the number of items successfully completed.
|
||||
/// </summary>
|
||||
/// <value>The progress value.</value>
|
||||
public int ProgressValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the status.
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
/// <value>The status.</value>
|
||||
public ProgressNotificationStatus Status { get; set; }
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (Status == ProgressNotificationStatus.InProgress)
|
||||
|
@ -73,5 +72,7 @@ namespace NzbDrone.Core.Model.Notification
|
|||
Status = ProgressNotificationStatus.Failed;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue