Skip to content

Commit

Permalink
EN-125 Add due date to language variant upsert model and update relat…
Browse files Browse the repository at this point in the history
…ed code example
  • Loading branch information
František Záhora authored and František Záhora committed Mar 28, 2024
1 parent 699c1c4 commit 9885c0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Kontent.Ai.Management.Tests/CodeSamples/CmApiV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,11 @@ public async void PutLanguageVariant()
Element = Reference.ByCodename("url_pattern"),
Mode = "autogenerated"
},
})
}),
DueDate = new DueDateModel
{
Value = DateTime.Parse("2092-01-07T06:04:00.7069564Z")
}
},
new WorkflowStepIdentifier(Reference.ByCodename("default"), Reference.ByCodename("review")));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public sealed class LanguageVariantUpsertModel
/// </summary>
public WorkflowStepIdentifier Workflow { get; set; }

/// <summary>
/// Gets or sets due date to update.
/// </summary>
public DueDateModel DueDate { get; set; }

/// <summary>
/// Creates an instance of the language variant upsert model.
/// </summary>
Expand All @@ -31,5 +36,6 @@ internal LanguageVariantUpsertModel(LanguageVariantModel languageVariant)
{
Elements = languageVariant.Elements;
Workflow = languageVariant.Workflow;
DueDate = languageVariant.DueDate;
}
}

0 comments on commit 9885c0d

Please sign in to comment.