package eu.socialsensor.framework.common.domain.feeds;

import java.util.Date;

import eu.socialsensor.framework.common.domain.Feed;

public class ListFeed extends Feed {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6876101187566475910L;
	private String owner;
	private String slug;

	public ListFeed(String owner, String slug, Date since) {
		super(since, Feed.FeedType.LIST);
		
		this.owner = owner;
		this.slug = slug;
	}

	public String getListOwner() {
		return owner;
	}
	
	public String getListSlug() {
		return slug;
	}
}

@@ -293,16 +293,412 @@
 ng slug;
+%0A%09%0A%09public ListFeed(String url,Date since,String id)%7B%0A%09%09super(since, Feed.FeedType.LIST);%0A%09%09this.id = id;%0A%09%09%0A%09%09String twitterRegex = %22https://twitter.com/%22;%0A%09%09String restString = url.replace(twitterRegex, %22%22);%0A%09%09int index = restString.indexOf(%22/%22);%0A%09%0A%09%09this.owner = restString.substring(0, index);%0A%09%0A%09%09String ownerRegex = owner+%22/lists/%22;%0A%09%0A%09%09this.slug = restString.replace(ownerRegex, %22%22);%0A%09%09%0A%09%7D
 %0A%0A%09publi
@@ -745,16 +745,26 @@
 te since
+,String id
 ) %7B%0A%09%09su
@@ -797,16 +797,29 @@
 IST);%0A%09%09
+this.id = id;
 %0A%09%09this.
@@ -959,10 +959,166 @@
 lug;%0A%09%7D%0A
+%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09ListFeed listFeed = new ListFeed(%22https://twitter.com/1basil1/lists/sundance2012filmmakers%22,null,null);%0A%09%09%0A%09%7D%0A
 %7D%0A

update listFeed with url in constuctor