Skip to content

Commit

Permalink
Deprecated patch creation methods in DuetAPI OM
Browse files Browse the repository at this point in the history
chrishamm committed Aug 22, 2024
1 parent d08388b commit 16d40e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DuetAPI/ObjectModel/Base/ModelObject.cs
Original file line number Diff line number Diff line change
@@ -180,6 +180,7 @@ public object Clone()
/// </summary>
/// <param name="other">Other instance</param>
/// <returns>Object differences or null if both instances are equal</returns>
[Obsolete("will be removed in v3.6")]
public object? FindDifferences(IModelObject other)
{
// Check the types
@@ -228,6 +229,7 @@ public object Clone()
/// </summary>
/// <param name="old">Old object state</param>
/// <returns>JSON patch</returns>
[Obsolete("will be removed in v3.6")]
public byte[] MakeUtf8Patch(ModelObject old)
{
object? diffs = FindDifferences(old);
@@ -239,6 +241,7 @@ public byte[] MakeUtf8Patch(ModelObject old)
/// </summary>
/// <param name="old">Old object state</param>
/// <returns>JSON patch</returns>
[Obsolete("will be removed in v3.6")]
public string MakeStringPatch(ModelObject old)
{
object? diffs = FindDifferences(old);

0 comments on commit 16d40e9

Please sign in to comment.