mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-27 07:40:24 +00:00
parent
2eb0791f9e
commit
86c8741579
@ -13,6 +13,9 @@ namespace TMDbLib.Objects.Changes
|
||||
Created = 2,
|
||||
|
||||
[EnumValue("updated")]
|
||||
Updated = 3
|
||||
Updated = 3,
|
||||
|
||||
[EnumValue("deleted")]
|
||||
Deleted = 4
|
||||
}
|
||||
}
|
16
TMDbLib/Objects/Changes/ChangeItemDeleted.cs
Normal file
16
TMDbLib/Objects/Changes/ChangeItemDeleted.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace TMDbLib.Objects.Changes
|
||||
{
|
||||
public class ChangeItemDeleted : ChangeItemBase
|
||||
{
|
||||
public ChangeItemDeleted()
|
||||
{
|
||||
Action = ChangeAction.Deleted;
|
||||
}
|
||||
|
||||
[JsonProperty("original_value")]
|
||||
public JToken OriginalValue { get; set; }
|
||||
}
|
||||
}
|
@ -9,16 +9,10 @@ namespace TMDbLib.Objects.Changes
|
||||
{
|
||||
Action = ChangeAction.Updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This field is not always set
|
||||
/// </summary>
|
||||
|
||||
[JsonProperty("original_value")]
|
||||
public JToken OriginalValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This field is not always set
|
||||
/// </summary>
|
||||
|
||||
[JsonProperty("value")]
|
||||
public JToken Value { get; set; }
|
||||
}
|
||||
|
@ -38,6 +38,9 @@ namespace TMDbLib.Utilities.Converters
|
||||
case ChangeAction.Updated:
|
||||
result = new ChangeItemUpdated();
|
||||
break;
|
||||
case ChangeAction.Deleted:
|
||||
result = new ChangeItemDeleted();
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user