13ba32f2f4
Added verification of coin/gem application in Web api. Added code to support polling last 100 purchases with EnjinTranslator Added UUId lookup to CoreClientManager and fixed Async to Async calls with DatabaseRunnable.
28 lines
645 B
Java
28 lines
645 B
Java
package mineplex.enjinTranslator;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
public class EnjinPurchase
|
|
{
|
|
private static SimpleDateFormat _dateFormat = new SimpleDateFormat();
|
|
|
|
public EnjinUser user;
|
|
public long purchase_date;
|
|
public String currency;
|
|
public String character;
|
|
public List<EnjinItem> items;
|
|
|
|
public void logInfoToConsole()
|
|
{
|
|
user.logInfoToConsole();
|
|
System.out.println(" MC Character : " + character + ", purchase_date : " + _dateFormat.format(new Date(purchase_date)) + ", currency : " + currency);
|
|
|
|
for (EnjinItem item : items)
|
|
{
|
|
item.logInfoToConsole();
|
|
}
|
|
}
|
|
}
|