-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
232 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/cf/data/model/poloniex/PoloniexOrderStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.cf.data.model.poloniex; | ||
|
||
import com.google.gson.Gson; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author guodong | ||
*/ | ||
public class PoloniexOrderStatus { | ||
public final Integer success; | ||
public final String error; | ||
public final Map<String, PoloniexOrderStatusDetail> result; | ||
|
||
public PoloniexOrderStatus(Integer success, String error, Map<String, PoloniexOrderStatusDetail> result) { | ||
this.success = success; | ||
this.error = error; | ||
this.result = result; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new Gson().toJson(this); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/cf/data/model/poloniex/PoloniexOrderStatusCheck.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.cf.data.model.poloniex; | ||
|
||
import com.google.gson.Gson; | ||
|
||
/** | ||
* @author guodong | ||
*/ | ||
public class PoloniexOrderStatusCheck { | ||
public final Integer success; | ||
public final Object result; | ||
|
||
public PoloniexOrderStatusCheck(Integer success, Object result) { | ||
this.success = success; | ||
this.result = result; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
return new Gson().toJson(this); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/cf/data/model/poloniex/PoloniexOrderStatusDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.cf.data.model.poloniex; | ||
|
||
import com.google.gson.Gson; | ||
|
||
/** | ||
* @author guodong | ||
*/ | ||
public class PoloniexOrderStatusDetail { | ||
public final String status; | ||
public final String rate; | ||
public final String amount; | ||
public final String currencyPair; | ||
public final String date; | ||
public final String total; | ||
public final String type; | ||
public final String startingAmount; | ||
|
||
public PoloniexOrderStatusDetail(String status, String rate, String amount, String currencyPair, String date, String total, String type, String startingAmount) { | ||
this.status = status; | ||
this.rate = rate; | ||
this.amount = amount; | ||
this.currencyPair = currencyPair; | ||
this.date = date; | ||
this.total = total; | ||
this.type = type; | ||
this.startingAmount = startingAmount; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new Gson().toJson(this); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/cf/data/model/poloniex/PoloniexOrderStatusError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.cf.data.model.poloniex; | ||
|
||
import com.google.gson.Gson; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author guodong | ||
*/ | ||
public class PoloniexOrderStatusError { | ||
public final Integer success; | ||
public final Map<String, String> result; | ||
|
||
public PoloniexOrderStatusError(Integer success, Map<String, String> result) { | ||
this.success = success; | ||
this.result = result; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
return new Gson().toJson(this); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/cf/data/model/poloniex/PoloniexWithdrawResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.cf.data.model.poloniex; | ||
|
||
import com.google.gson.Gson; | ||
|
||
/** | ||
* @author guodong | ||
*/ | ||
public class PoloniexWithdrawResult { | ||
public final String response; | ||
public final String error; | ||
|
||
public PoloniexWithdrawResult(String response, String error) { | ||
this.response = response; | ||
this.error = error; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new Gson().toJson(this); | ||
} | ||
} |