From f410d2def812cc9af3f0ee07babd7ffa273a11f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Je=C5=BEek?= Date: Tue, 30 Aug 2022 22:48:31 +0200 Subject: [PATCH 1/2] cf multi enum value support --- src/main/java/com/asana/models/CustomField.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/asana/models/CustomField.java b/src/main/java/com/asana/models/CustomField.java index 227ea38..7d7c7e2 100644 --- a/src/main/java/com/asana/models/CustomField.java +++ b/src/main/java/com/asana/models/CustomField.java @@ -7,9 +7,9 @@ public class CustomField extends ResourceWithSubtype { public static class EnumOption extends ResourceWithSubtype { - public String name; - public Boolean enabled; - public String color; + public String name; + public Boolean enabled; + public String color; } public String name; @@ -30,4 +30,8 @@ public static class EnumOption extends ResourceWithSubtype { public Collection enumOptions; @SerializedName("enum_value") public EnumOption enumValue; + + // Only for type "multi_enum" + @SerializedName("multi_enum_values") + public Collection multiEnumValues; } From b9bb6b415130d6cf3285a9a3dd961ddcf41c1f76 Mon Sep 17 00:00:00 2001 From: Petr Jezek Date: Wed, 31 Aug 2022 13:02:51 +0200 Subject: [PATCH 2/2] reverted formatting --- src/main/java/com/asana/models/CustomField.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/asana/models/CustomField.java b/src/main/java/com/asana/models/CustomField.java index 7d7c7e2..6928342 100644 --- a/src/main/java/com/asana/models/CustomField.java +++ b/src/main/java/com/asana/models/CustomField.java @@ -7,9 +7,9 @@ public class CustomField extends ResourceWithSubtype { public static class EnumOption extends ResourceWithSubtype { - public String name; - public Boolean enabled; - public String color; + public String name; + public Boolean enabled; + public String color; } public String name;