diff --git a/java/use-webhooks/using_webhooks_notification_model.java b/java/use-webhooks/using_webhooks_notification_model.java deleted file mode 100644 index 04a2372e..00000000 --- a/java/use-webhooks/using_webhooks_notification_model.java +++ /dev/null @@ -1,87 +0,0 @@ -// Tip: Find more about Java SDK at https://kontent.ai/learn/java -import com.fasterxml.jackson.annotation.JsonProperty; - -public class KontentWebhookModel { - @JsonProperty("message") - Message message; - - @JsonProperty("data") - Data data; - - public Message getMessage() { return message; } - - public Data getData() { return data; } -} - -public class Message { - @JsonProperty("id") - String id; - - @JsonProperty("type") - String type; - - @JsonProperty("operation") - String operation; - - @JsonProperty("api_name") - String apiName; - - @JsonProperty("project_id") - String projectId; - - public String getId { return id; } - - public String getType { return type; } - - public String getOperation { return operation; } - - public String getApiName { return apiName; } - - public String getProjectId { return projectId; } -} - -public class Data { - @JsonProperty("items") - List items; - - @JsonProperty("taxonomies") - List taxonomies; - - public List getItems { return items; } - - public List getTaxonomies { return taxonomies; } -} - -public class Item { - @JsonProperty("id") - String id; - - @JsonProperty("codename") - String codename; - - @JsonProperty("language") - String language; - - @JsonProperty("type") - String type; - - public String getId { return id; } - - public String getCodename { return codename; } - - public String getLanguage { return language; } - - public String getType { return type; } -} - -public class Taxonomy { - @JsonProperty("id") - String id; - - @JsonProperty("codename") - String codename; - - public String getId { return id; } - - public String getCodename { return codename; } -} diff --git a/net/using-webhooks/using_webhooks_notification_model.cs b/net/using-webhooks/using_webhooks_notification_model.cs deleted file mode 100644 index 48710b34..00000000 --- a/net/using-webhooks/using_webhooks_notification_model.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net -using System; -using Newtonsoft.Json; - -public class KontentAiWebhookModel -{ - [JsonProperty("message")] - public Message Message { get; set; } - - [JsonProperty("data")] - public Data Data { get; set; } -} - -public class Message -{ - [JsonProperty("id")] - public Guid Id { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("operation")] - public string Operation { get; set; } - - [JsonProperty("api_name")] - public string ApiName { get; set; } - - [JsonProperty("project_id")] - public Guid ProjectId { get; set; } -} - -public class Data -{ - [JsonProperty("items")] - public Item[] Items { get; set; } - - [JsonProperty("taxonomies")] - public Taxonomy[] Taxonomies { get; set; } -} - -public class Item -{ - [JsonProperty("id")] - public string Id { get; set; } - - [JsonProperty("codename")] - public string Codename { get; set; } - - [JsonProperty("language")] - public string Language { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } -} - -public class Taxonomy -{ - [JsonProperty("id")] - public string Id { get; set; } - - [JsonProperty("codename")] - public string Codename { get; set; } -}