diff options
Diffstat (limited to 'Api/Contract')
-rw-r--r-- | Api/Contract/NewContent.cs | 7 | ||||
-rw-r--r-- | Api/Contract/WikiPage.cs | 7 | ||||
-rw-r--r-- | Api/Contract/WikiProperty.cs | 8 |
3 files changed, 22 insertions, 0 deletions
diff --git a/Api/Contract/NewContent.cs b/Api/Contract/NewContent.cs new file mode 100644 index 0000000..67a0019 --- /dev/null +++ b/Api/Contract/NewContent.cs @@ -0,0 +1,7 @@ +namespace WikiWaka.Api.Contract; + +public class NewContent +{ + public required string Text { get; set; } + public required string LanguageCode { get; set; } +} diff --git a/Api/Contract/WikiPage.cs b/Api/Contract/WikiPage.cs new file mode 100644 index 0000000..0ea9d0a --- /dev/null +++ b/Api/Contract/WikiPage.cs @@ -0,0 +1,7 @@ +namespace WikiWaka.Api.Contract; + +public class WikiPage +{ + public required int Id { get; init; } + public required WikiProperty Property { get; init; } +} diff --git a/Api/Contract/WikiProperty.cs b/Api/Contract/WikiProperty.cs new file mode 100644 index 0000000..7f00812 --- /dev/null +++ b/Api/Contract/WikiProperty.cs @@ -0,0 +1,8 @@ +namespace WikiWaka.Api.Contract; + +public class WikiProperty +{ + public required int Id { get; init; } + public required string Text { get; set; } + public required string LanguageCode { get; set; } +} |