Skip to content

Commit 5afd1a8

Browse files
authored
Update client code for 40e362cdf492dcccb06d49f4be8639eacd3c3f64 (#39)
1 parent 37b7284 commit 5afd1a8

8 files changed

+286
-43
lines changed

src/main/java/io/gopluslabs/client/model/ResponseWrapperSolanaTokenSecurityDex.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import io.gopluslabs.client.model.ResponseWrapperSolanaTokenSecurityWeek;
2525
import io.swagger.v3.oas.annotations.media.Schema;
2626
import java.io.IOException;
27+
import java.math.BigDecimal;
2728
/**
2829
* ResponseWrapperSolanaTokenSecurityDex
2930
*/
@@ -58,6 +59,9 @@ public class ResponseWrapperSolanaTokenSecurityDex {
5859
@SerializedName("day")
5960
private ResponseWrapperSolanaTokenSecurityDay day = null;
6061

62+
@SerializedName("burn_percent")
63+
private BigDecimal burnPercent = null;
64+
6165
@SerializedName("lp_amount")
6266
private String lpAmount = null;
6367

@@ -226,6 +230,24 @@ public void setDay(ResponseWrapperSolanaTokenSecurityDay day) {
226230
this.day = day;
227231
}
228232

233+
public ResponseWrapperSolanaTokenSecurityDex burnPercent(BigDecimal burnPercent) {
234+
this.burnPercent = burnPercent;
235+
return this;
236+
}
237+
238+
/**
239+
* Percentage of burned LP
240+
* @return burnPercent
241+
**/
242+
@Schema(description = "Percentage of burned LP")
243+
public BigDecimal getBurnPercent() {
244+
return burnPercent;
245+
}
246+
247+
public void setBurnPercent(BigDecimal burnPercent) {
248+
this.burnPercent = burnPercent;
249+
}
250+
229251
public ResponseWrapperSolanaTokenSecurityDex lpAmount(String lpAmount) {
230252
this.lpAmount = lpAmount;
231253
return this;
@@ -281,13 +303,14 @@ public boolean equals(java.lang.Object o) {
281303
Objects.equals(this.type, responseWrapperSolanaTokenSecurityDex.type) &&
282304
Objects.equals(this.dexName, responseWrapperSolanaTokenSecurityDex.dexName) &&
283305
Objects.equals(this.day, responseWrapperSolanaTokenSecurityDex.day) &&
306+
Objects.equals(this.burnPercent, responseWrapperSolanaTokenSecurityDex.burnPercent) &&
284307
Objects.equals(this.lpAmount, responseWrapperSolanaTokenSecurityDex.lpAmount) &&
285308
Objects.equals(this.feeRate, responseWrapperSolanaTokenSecurityDex.feeRate);
286309
}
287310

288311
@Override
289312
public int hashCode() {
290-
return Objects.hash(week, month, price, openTime, id, tvl, type, dexName, day, lpAmount, feeRate);
313+
return Objects.hash(week, month, price, openTime, id, tvl, type, dexName, day, burnPercent, lpAmount, feeRate);
291314
}
292315

293316

@@ -305,6 +328,7 @@ public String toString() {
305328
sb.append(" type: ").append(toIndentedString(type)).append("\n");
306329
sb.append(" dexName: ").append(toIndentedString(dexName)).append("\n");
307330
sb.append(" day: ").append(toIndentedString(day)).append("\n");
331+
sb.append(" burnPercent: ").append(toIndentedString(burnPercent)).append("\n");
308332
sb.append(" lpAmount: ").append(toIndentedString(lpAmount)).append("\n");
309333
sb.append(" feeRate: ").append(toIndentedString(feeRate)).append("\n");
310334
sb.append("}");
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
/*
2+
* GoPlus Security API Document
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: 1.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package io.gopluslabs.client.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.gopluslabs.client.model.ResponseWrapperSolanaTokenSecurityLockedDetail;
23+
import io.swagger.v3.oas.annotations.media.Schema;
24+
import java.io.IOException;
25+
import java.util.ArrayList;
26+
import java.util.List;
27+
/**
28+
* ResponseWrapperSolanaTokenSecurityHolders
29+
*/
30+
31+
32+
33+
public class ResponseWrapperSolanaTokenSecurityHolders {
34+
@SerializedName("is_locked")
35+
private Integer isLocked = null;
36+
37+
@SerializedName("balance")
38+
private String balance = null;
39+
40+
@SerializedName("locked_detail")
41+
private List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail = null;
42+
43+
@SerializedName("token_account")
44+
private String tokenAccount = null;
45+
46+
@SerializedName("tag")
47+
private String tag = null;
48+
49+
@SerializedName("percent")
50+
private String percent = null;
51+
52+
public ResponseWrapperSolanaTokenSecurityHolders isLocked(Integer isLocked) {
53+
this.isLocked = isLocked;
54+
return this;
55+
}
56+
57+
/**
58+
* It describes whether the tokens owned by the holder are locked \&quot;1\&quot; means true; \&quot;0\&quot; means false; (3) &#x27;tag&#x27; describes the address&#x27;s public tag. Example:Burn (Notice:About \&quot;locked\&quot;:We only support the token lock addresses or black hole addresses that we have included. )
59+
* @return isLocked
60+
**/
61+
@Schema(description = "It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) 'tag' describes the address's public tag. Example:Burn (Notice:About \"locked\":We only support the token lock addresses or black hole addresses that we have included. )")
62+
public Integer getIsLocked() {
63+
return isLocked;
64+
}
65+
66+
public void setIsLocked(Integer isLocked) {
67+
this.isLocked = isLocked;
68+
}
69+
70+
public ResponseWrapperSolanaTokenSecurityHolders balance(String balance) {
71+
this.balance = balance;
72+
return this;
73+
}
74+
75+
/**
76+
* Amount of tokens held.
77+
* @return balance
78+
**/
79+
@Schema(description = "Amount of tokens held.")
80+
public String getBalance() {
81+
return balance;
82+
}
83+
84+
public void setBalance(String balance) {
85+
this.balance = balance;
86+
}
87+
88+
public ResponseWrapperSolanaTokenSecurityHolders lockedDetail(List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail) {
89+
this.lockedDetail = lockedDetail;
90+
return this;
91+
}
92+
93+
public ResponseWrapperSolanaTokenSecurityHolders addLockedDetailItem(ResponseWrapperSolanaTokenSecurityLockedDetail lockedDetailItem) {
94+
if (this.lockedDetail == null) {
95+
this.lockedDetail = new ArrayList<ResponseWrapperSolanaTokenSecurityLockedDetail>();
96+
}
97+
this.lockedDetail.add(lockedDetailItem);
98+
return this;
99+
}
100+
101+
/**
102+
* It is an array, decribes lock position info of this holder, only shows when \&quot;locked\&quot;:1. This Array may contain multiple objects for multiple locking info. (Notice:When \&quot;locked\&quot;:0, or lock address is a black hole address, \&quot;locked_detail\&quot; will be no return.)
103+
* @return lockedDetail
104+
**/
105+
@Schema(description = "It is an array, decribes lock position info of this holder, only shows when \"locked\":1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.)")
106+
public List<ResponseWrapperSolanaTokenSecurityLockedDetail> getLockedDetail() {
107+
return lockedDetail;
108+
}
109+
110+
public void setLockedDetail(List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail) {
111+
this.lockedDetail = lockedDetail;
112+
}
113+
114+
public ResponseWrapperSolanaTokenSecurityHolders tokenAccount(String tokenAccount) {
115+
this.tokenAccount = tokenAccount;
116+
return this;
117+
}
118+
119+
/**
120+
* Address of the holder.
121+
* @return tokenAccount
122+
**/
123+
@Schema(description = "Address of the holder.")
124+
public String getTokenAccount() {
125+
return tokenAccount;
126+
}
127+
128+
public void setTokenAccount(String tokenAccount) {
129+
this.tokenAccount = tokenAccount;
130+
}
131+
132+
public ResponseWrapperSolanaTokenSecurityHolders tag(String tag) {
133+
this.tag = tag;
134+
return this;
135+
}
136+
137+
/**
138+
* Tag information of the holder.
139+
* @return tag
140+
**/
141+
@Schema(description = "Tag information of the holder.")
142+
public String getTag() {
143+
return tag;
144+
}
145+
146+
public void setTag(String tag) {
147+
this.tag = tag;
148+
}
149+
150+
public ResponseWrapperSolanaTokenSecurityHolders percent(String percent) {
151+
this.percent = percent;
152+
return this;
153+
}
154+
155+
/**
156+
* Percentage of total supply held.
157+
* @return percent
158+
**/
159+
@Schema(description = "Percentage of total supply held.")
160+
public String getPercent() {
161+
return percent;
162+
}
163+
164+
public void setPercent(String percent) {
165+
this.percent = percent;
166+
}
167+
168+
169+
@Override
170+
public boolean equals(java.lang.Object o) {
171+
if (this == o) {
172+
return true;
173+
}
174+
if (o == null || getClass() != o.getClass()) {
175+
return false;
176+
}
177+
ResponseWrapperSolanaTokenSecurityHolders responseWrapperSolanaTokenSecurityHolders = (ResponseWrapperSolanaTokenSecurityHolders) o;
178+
return Objects.equals(this.isLocked, responseWrapperSolanaTokenSecurityHolders.isLocked) &&
179+
Objects.equals(this.balance, responseWrapperSolanaTokenSecurityHolders.balance) &&
180+
Objects.equals(this.lockedDetail, responseWrapperSolanaTokenSecurityHolders.lockedDetail) &&
181+
Objects.equals(this.tokenAccount, responseWrapperSolanaTokenSecurityHolders.tokenAccount) &&
182+
Objects.equals(this.tag, responseWrapperSolanaTokenSecurityHolders.tag) &&
183+
Objects.equals(this.percent, responseWrapperSolanaTokenSecurityHolders.percent);
184+
}
185+
186+
@Override
187+
public int hashCode() {
188+
return Objects.hash(isLocked, balance, lockedDetail, tokenAccount, tag, percent);
189+
}
190+
191+
192+
@Override
193+
public String toString() {
194+
StringBuilder sb = new StringBuilder();
195+
sb.append("class ResponseWrapperSolanaTokenSecurityHolders {\n");
196+
197+
sb.append(" isLocked: ").append(toIndentedString(isLocked)).append("\n");
198+
sb.append(" balance: ").append(toIndentedString(balance)).append("\n");
199+
sb.append(" lockedDetail: ").append(toIndentedString(lockedDetail)).append("\n");
200+
sb.append(" tokenAccount: ").append(toIndentedString(tokenAccount)).append("\n");
201+
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
202+
sb.append(" percent: ").append(toIndentedString(percent)).append("\n");
203+
sb.append("}");
204+
return sb.toString();
205+
}
206+
207+
/**
208+
* Convert the given object to string with each line indented by 4 spaces
209+
* (except the first line).
210+
*/
211+
private String toIndentedString(java.lang.Object o) {
212+
if (o == null) {
213+
return "null";
214+
}
215+
return o.toString().replace("\n", "\n ");
216+
}
217+
218+
}

src/main/java/io/gopluslabs/client/model/ResponseWrapperTokenSecurityLockedDetail.java renamed to src/main/java/io/gopluslabs/client/model/ResponseWrapperSolanaTokenSecurityLockedDetail.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
import io.swagger.v3.oas.annotations.media.Schema;
2323
import java.io.IOException;
2424
/**
25-
* ResponseWrapperTokenSecurityLockedDetail
25+
* ResponseWrapperSolanaTokenSecurityLockedDetail
2626
*/
2727

2828

2929

30-
public class ResponseWrapperTokenSecurityLockedDetail {
30+
public class ResponseWrapperSolanaTokenSecurityLockedDetail {
3131
@SerializedName("amount")
3232
private String amount = null;
3333

@@ -37,7 +37,7 @@ public class ResponseWrapperTokenSecurityLockedDetail {
3737
@SerializedName("end_time")
3838
private String endTime = null;
3939

40-
public ResponseWrapperTokenSecurityLockedDetail amount(String amount) {
40+
public ResponseWrapperSolanaTokenSecurityLockedDetail amount(String amount) {
4141
this.amount = amount;
4242
return this;
4343
}
@@ -55,7 +55,7 @@ public void setAmount(String amount) {
5555
this.amount = amount;
5656
}
5757

58-
public ResponseWrapperTokenSecurityLockedDetail optTime(String optTime) {
58+
public ResponseWrapperSolanaTokenSecurityLockedDetail optTime(String optTime) {
5959
this.optTime = optTime;
6060
return this;
6161
}
@@ -73,7 +73,7 @@ public void setOptTime(String optTime) {
7373
this.optTime = optTime;
7474
}
7575

76-
public ResponseWrapperTokenSecurityLockedDetail endTime(String endTime) {
76+
public ResponseWrapperSolanaTokenSecurityLockedDetail endTime(String endTime) {
7777
this.endTime = endTime;
7878
return this;
7979
}
@@ -100,10 +100,10 @@ public boolean equals(java.lang.Object o) {
100100
if (o == null || getClass() != o.getClass()) {
101101
return false;
102102
}
103-
ResponseWrapperTokenSecurityLockedDetail responseWrapperTokenSecurityLockedDetail = (ResponseWrapperTokenSecurityLockedDetail) o;
104-
return Objects.equals(this.amount, responseWrapperTokenSecurityLockedDetail.amount) &&
105-
Objects.equals(this.optTime, responseWrapperTokenSecurityLockedDetail.optTime) &&
106-
Objects.equals(this.endTime, responseWrapperTokenSecurityLockedDetail.endTime);
103+
ResponseWrapperSolanaTokenSecurityLockedDetail responseWrapperSolanaTokenSecurityLockedDetail = (ResponseWrapperSolanaTokenSecurityLockedDetail) o;
104+
return Objects.equals(this.amount, responseWrapperSolanaTokenSecurityLockedDetail.amount) &&
105+
Objects.equals(this.optTime, responseWrapperSolanaTokenSecurityLockedDetail.optTime) &&
106+
Objects.equals(this.endTime, responseWrapperSolanaTokenSecurityLockedDetail.endTime);
107107
}
108108

109109
@Override
@@ -115,7 +115,7 @@ public int hashCode() {
115115
@Override
116116
public String toString() {
117117
StringBuilder sb = new StringBuilder();
118-
sb.append("class ResponseWrapperTokenSecurityLockedDetail {\n");
118+
sb.append("class ResponseWrapperSolanaTokenSecurityLockedDetail {\n");
119119

120120
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
121121
sb.append(" optTime: ").append(toIndentedString(optTime)).append("\n");

0 commit comments

Comments
 (0)