37 lines
840 B
Java
37 lines
840 B
Java
package com.thebrokenrail.mtudining.activity.list;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Data to be displayed in {@link ListActivity}.
|
|
*/
|
|
public class ListData {
|
|
public static class Element {
|
|
public final String id;
|
|
public final String name;
|
|
|
|
public Element(String id, String name) {
|
|
this.id = id;
|
|
this.name = name;
|
|
}
|
|
}
|
|
|
|
public static class Category {
|
|
public final String name;
|
|
public boolean isOpen = true;
|
|
public final List<Element> locations = new ArrayList<>();
|
|
|
|
public Category(String name) {
|
|
this.name = name;
|
|
}
|
|
}
|
|
|
|
public final String siteId;
|
|
public final List<Category> categories = new ArrayList<>();
|
|
|
|
public ListData(String siteId) {
|
|
this.siteId = siteId;
|
|
}
|
|
}
|