| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.ComponentModel; |
| using System.ComponentModel; |
| using System.Linq; |
| using System.Linq; |
| using System.Text; |
| using System.Text; |
| using System.Threading.Tasks; |
| using System.Threading.Tasks; |
| |
| |
| namespace Playnite.SDK.Models |
| namespace Playnite.SDK.Models |
| { |
| { |
| /// <summary> |
| /// <summary> |
| /// Represents game completion status. |
| /// Represents game completion status. |
| /// </summary> |
| /// </summary> |
. | public enum CompletionStatus : int |
| public class CompletionStatus : DatabaseObject |
| { |
| { |
| /// <summary> |
| /// <summary> |
. | /// Represents "Not Played" completion status. |
| /// Creates new instance of <see cref="CompletionStatus"/>. |
| /// </summary> |
| /// </summary> |
. | [Description("LOCCompletionStatusNotPlayed")] |
| public CompletionStatus() : base() |
| NotPlayed = 0, |
| { |
| |
| } |
| |
| |
| /// <summary> |
| /// <summary> |
. | /// Represents Played completion status. |
| /// Creates new instance of <see cref="CompletionStatus"/>. |
| /// </summary> |
| /// </summary> |
. | [Description("LOCCompletionStatusPlayed")] |
| /// <param name="name"></param> |
| Played = 1, |
| public CompletionStatus(string name) : base() |
| |
| { |
| |
| Name = name; |
| |
| } |
| |
| |
| /// <summary> |
| /// <summary> |
. | /// Represents Beaten completion status. |
| /// Gets empty CompletionStatus. |
| /// </summary> |
| /// </summary> |
. | [Description("LOCCompletionStatusBeaten")] |
| public static readonly CompletionStatus Empty = new CompletionStatus { Id = Guid.Empty, Name = string.Empty }; |
| Beaten = 2, |
| |
| /// <summary> |
| |
| /// Represents Completed completion status. |
| |
| /// </summary> |
| |
| [Description("LOCCompletionStatusCompleted")] |
| |
| Completed = 3, |
| |
| /// <summary> |
| |
| /// Represents Playing completion status. |
| |
| /// </summary> |
| |
| [Description("LOCCompletionStatusPlaying")] |
| |
| Playing = 4, |
| |
| /// <summary> |
| |
| /// Represents Abandoned completion status. |
| |
| /// </summary> |
| |
| [Description("LOCCompletionStatusAbandoned")] |
| |
| Abandoned = 5, |
| |
| /// <summary> |
| |
| /// Represents "On hold" completion status. |
| |
| /// </summary> |
| |
| [Description("LOCCompletionStatusOnHold")] |
| |
| OnHold = 6, |
| |
| /// <summary> |
| |
| /// Represents "Plan to Play" completion status. |
| |
| /// </summary> |
| |
| [Description("LOCCompletionStatusPlanToPlay")] |
| |
| PlanToPlay = 7 |
| |
| } |
| } |
| } |
| } |
| |
| |