Added more class fields for better 1:1 result mapping
This commit is contained in:
parent
187e2dd79b
commit
28534320cf
@ -0,0 +1,13 @@
|
|||||||
|
package dev.salmonllama.fsbot.endpoints.scapefashion;
|
||||||
|
|
||||||
|
public class ScapeFashionImages {
|
||||||
|
private String detail;
|
||||||
|
|
||||||
|
public ScapeFashionImages() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetail() {
|
||||||
|
return detail;
|
||||||
|
}
|
||||||
|
}
|
@ -6,20 +6,26 @@
|
|||||||
package dev.salmonllama.fsbot.endpoints.scapefashion;
|
package dev.salmonllama.fsbot.endpoints.scapefashion;
|
||||||
|
|
||||||
public class ScapeFashionItem {
|
public class ScapeFashionItem {
|
||||||
|
private final ScapeFashionImages images;
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String slot;
|
private final String slot;
|
||||||
private final String link;
|
private final ScapeFashionWiki wiki;
|
||||||
private final String[] colors;
|
private final String[] colors;
|
||||||
private final float match;
|
private final float match;
|
||||||
|
|
||||||
private ScapeFashionItem(Builder builder) {
|
private ScapeFashionItem(Builder builder) {
|
||||||
|
this.images = builder.images;
|
||||||
this.name = builder.name;
|
this.name = builder.name;
|
||||||
this.slot = builder.slot;
|
this.slot = builder.slot;
|
||||||
this.link = builder.link;
|
this.wiki = builder.wiki;
|
||||||
this.colors = builder.colors;
|
this.colors = builder.colors;
|
||||||
this.match = builder.match;
|
this.match = builder.match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ScapeFashionImages getImages() {
|
||||||
|
return images;
|
||||||
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -28,8 +34,8 @@ public class ScapeFashionItem {
|
|||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLink() {
|
public ScapeFashionWiki getWiki() {
|
||||||
return link;
|
return wiki;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getColors() {
|
public String[] getColors() {
|
||||||
@ -46,9 +52,10 @@ public class ScapeFashionItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
|
private ScapeFashionImages images;
|
||||||
private String name;
|
private String name;
|
||||||
private String slot;
|
private String slot;
|
||||||
private String link;
|
private ScapeFashionWiki wiki;
|
||||||
private String[] colors;
|
private String[] colors;
|
||||||
private float match;
|
private float match;
|
||||||
|
|
||||||
@ -56,6 +63,11 @@ public class ScapeFashionItem {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder setImages(ScapeFashionImages images) {
|
||||||
|
this.images = images;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder setName(String name) {
|
public Builder setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
@ -66,8 +78,8 @@ public class ScapeFashionItem {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder setLink(String link) {
|
public Builder setWiki(ScapeFashionWiki wiki) {
|
||||||
this.link = link;
|
this.wiki = wiki;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
package dev.salmonllama.fsbot.endpoints.scapefashion;
|
||||||
|
|
||||||
|
public class ScapeFashionWiki {
|
||||||
|
private String api;
|
||||||
|
private String link;
|
||||||
|
private int pageId;
|
||||||
|
|
||||||
|
public ScapeFashionWiki() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getApi() {
|
||||||
|
return api;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLink() {
|
||||||
|
return link;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPageId() {
|
||||||
|
return pageId;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user