Last active
June 25, 2016 18:53
-
-
Save dunklesToast/68232f8a012062933c36fabb390b7153 to your computer and use it in GitHub Desktop.
Devintia Money API Snippet
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
class DBMoney implements ConfigurationSerializable{ | |
int money; | |
public DBMoney( int value ){ | |
money = value; | |
} | |
public DBMoney( Map<String, Object> data){ | |
money = (int)data.get( "money" ); | |
} | |
@Override | |
public Map<String, Object> serialize(){ | |
Map<String, Object> map = new HashMap<>( ); | |
map.put( "money", money ); | |
return map; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment