diff --git a/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java b/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java index 8597a6d..2cd0c94 100644 --- a/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java +++ b/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java @@ -21,7 +21,7 @@ private ArrayList categories = new ArrayList<>(); private HashMap commentMap = new HashMap<>(); - public Voicememo(String vid, String uid, Integer time, String url, double latitude, double longitude, String title, String summary) { + public Voicememo(String vid, String uid, Integer time, String url, double latitude, double longitude, String title, String summary, ArrayList categories) { Calendar upload = Calendar.getInstance(); @@ -34,6 +34,7 @@ setLongitude(longitude); setTitle(title); setSummary(summary); + setCategories(categories); this.times = 0; this.favos = 0; } @@ -149,6 +150,10 @@ favos = favolist.size(); } + public void setCategories(ArrayList categories) { + this.categories = categories; + } + public ArrayList getCategory(){ return categories; } public void addCategory(String categoryId){