added complete tree

This commit is contained in:
Athou
2013-03-22 22:11:40 +01:00
parent 31f6687b38
commit 87000b0e11
8 changed files with 128 additions and 115 deletions

View File

@@ -2,20 +2,19 @@ package com.commafeed.frontend.rest.model;
import java.util.List;
import com.commafeed.frontend.rest.FeedSubscriptionsREST.Subscription;
import com.google.common.collect.Lists;
public class Category {
private Long id;
private String id;
private String name;
private List<Category> children = Lists.newArrayList();
private List<Subscription> feeds = Lists.newArrayList();
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}

View File

@@ -1,10 +1,12 @@
package com.commafeed.frontend.rest.model;
import java.util.Date;
public class Entry {
private String id;
private String title;
private String content;
private String date;
private Date date;
private String feedId;
private String feedName;
private String url;
@@ -35,11 +37,11 @@ public class Entry {
this.content = content;
}
public String getDate() {
public Date getDate() {
return date;
}
public void setDate(String date) {
public void setDate(Date date) {
this.date = date;
}