Open Blumberg1337 opened 3 years ago
so?
[
{
"id": 1234872934719850,
"name": "Peterpan#1234",
"nickname": "Tinkerbell",
"characters": [
{
"id": 1,
"name": "Tollertank",
"characterClass": "warrior",
"spec": "prot",
"offTank": true,
"raidLead": false,
"speedRunner": true,
"possibleDaysToRaid": [0,2,4,5],
"role": "tank"
},
{
"id": 6,
"name": "Tollerheiler",
"characterClass": "pala",
"spec": "holy",
"offTank": false,
"raidLead": false,
"speedRunner": false,
"possibleDaysToRaid": [0,2,4,5],
"role": "heal"
}
]
}
]
Als JSON:
public class CharacterData {
@DocumentId String id; String name; String characterClass; String spec; boolean offTank; boolean raidLead; boolean speedRunner; List possibleDaysToRaid;
String role;
}
public class User {
@DocumentId String id; String name; String nickName; List characters;
}