From e12f1d7baef078fbe264af98d7086fe86f267723 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Sep 2019 00:22:26 +0200 Subject: [PATCH] changed challenge id from integer to string, added auth_methods --- src/main/java/me/figo/models/AuthMethod.java | 44 +++++++++++++++++++ src/main/java/me/figo/models/ChallengeV4.java | 17 ++++--- 2 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 src/main/java/me/figo/models/AuthMethod.java diff --git a/src/main/java/me/figo/models/AuthMethod.java b/src/main/java/me/figo/models/AuthMethod.java new file mode 100644 index 0000000..5c0076a --- /dev/null +++ b/src/main/java/me/figo/models/AuthMethod.java @@ -0,0 +1,44 @@ +/** + * + */ +package me.figo.models; + +import java.util.Map; + +import com.google.gson.annotations.Expose; + +/** + * @author Daniel + * + */ +public class AuthMethod { + + @Expose + private String id; + + @Expose + private String medium_name; + + @Expose + private String type; + + @Expose + private Map additional_info; + + public String getId() { + return id; + } + + public String getMedium_name() { + return medium_name; + } + + public String getType() { + return type; + } + + public Map getAdditional_info() { + return additional_info; + } + +} diff --git a/src/main/java/me/figo/models/ChallengeV4.java b/src/main/java/me/figo/models/ChallengeV4.java index 75f3e04..6caa3fd 100644 --- a/src/main/java/me/figo/models/ChallengeV4.java +++ b/src/main/java/me/figo/models/ChallengeV4.java @@ -24,7 +24,7 @@ public class ChallengeV4 { private String format; @Expose - private Integer id; + private String id; @Expose private String input_format; @@ -42,6 +42,9 @@ public class ChallengeV4 { @Expose private String type; + @Expose + private List auth_methods; + @Expose private String version; @@ -61,10 +64,6 @@ public String getFormat() { return format; } - public Integer getId() { - return id; - } - public String getInput_format() { return input_format; } @@ -99,4 +98,12 @@ public List getChallenges() { } } + + public String getId() { + return id; + } + + public List getAuthMethods() { + return auth_methods; + } }