Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
javaes committed Sep 19, 2019
2 parents efa1dcf + b26437f commit 2b7e442
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
44 changes: 44 additions & 0 deletions src/main/java/me/figo/models/AuthMethod.java
Original file line number Diff line number Diff line change
@@ -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<String,String> additional_info;

public String getId() {
return id;
}

public String getMedium_name() {
return medium_name;
}

public String getType() {
return type;
}

public Map<String, String> getAdditional_info() {
return additional_info;
}

}
17 changes: 12 additions & 5 deletions src/main/java/me/figo/models/ChallengeV4.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ChallengeV4 {
private String format;

@Expose
private Integer id;
private String id;

@Expose
private String input_format;
Expand All @@ -42,6 +42,9 @@ public class ChallengeV4 {
@Expose
private String type;

@Expose
private List<AuthMethod> auth_methods;

@Expose
private String version;

Expand All @@ -61,10 +64,6 @@ public String getFormat() {
return format;
}

public Integer getId() {
return id;
}

public String getInput_format() {
return input_format;
}
Expand Down Expand Up @@ -99,4 +98,12 @@ public List<ChallengeV4> getChallenges() {
}

}

public String getId() {
return id;
}

public List<AuthMethod> getAuthMethods() {
return auth_methods;
}
}

0 comments on commit 2b7e442

Please sign in to comment.