package com.xebia.devradar;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Fetcher {

    public Set<Event> fetch() {
        Set<Event> events = new HashSet<Event>();
        int i = 0;
        events.add(new Event(new Date().getTime()+i++, "nicolas", "nicolas a committé qqqch", "http://www.gravatar.com/avatar/4a89258a4759e47dab3266e9b9d76065.png"));
        events.add(new Event(new Date().getTime()+i++, "cyrille", "cyille a committé qqqch", "http://www.gravatar.com/avatar/fd83e4fbdb11f925603ef60d25efcbb4"));
        events.add(new Event(new Date().getTime()+i++, "jean-laurent", "jean-laurent a committé qqqch", "http://www.gravatar.com/avatar/649d3668d3ba68e75a3441dec9eac26e"));
        events.add(new Event(new Date().getTime()+i++, "simon", "simon a committé qqqch", "http://www.gravatar.com/avatar/740b1444a71181776c42130408a4b848"));
        events.add(new Event(new Date().getTime()+i++, "alexandre", "alexandre a committé qqqch", "http://www.gravatar.com/avatar/e96398d35fcd2cb3df072bcb28c9c917"));
        events.add(new Event(new Date().getTime()+i++, "nicolas", "nicolas a committé qqqch", "http://www.gravatar.com/avatar/4a89258a4759e47dab3266e9b9d76065.png"));
        events.add(new Event(new Date().getTime()+i++, "cyrille", "cyrille a committé qqqch", "http://www.gravatar.com/avatar/fd83e4fbdb11f925603ef60d25efcbb4"));
        events.add(new Event(new Date().getTime()+i++, "jean-laurent", "jean-laurent a committé qqqch", "http://www.gravatar.com/avatar/649d3668d3ba68e75a3441dec9eac26e"));
        events.add(new Event(new Date().getTime()+i++, "simon", "simon a committé qqqch", "http://www.gravatar.com/avatar/740b1444a71181776c42130408a4b848"));
        events.add(new Event(new Date().getTime()+i, "alexandre", "alexandre a committé qqqch", "http://www.gravatar.com/avatar/e96398d35fcd2cb3df072bcb28c9c917"));
        return events;
    }
}

@@ -260,36 +260,51 @@
 Date().getTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22nicolas%22, %22ni
@@ -442,36 +442,51 @@
 Date().getTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22cyrille%22, %22cy
@@ -619,36 +619,51 @@
 Date().getTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22jean-laurent%22
@@ -807,36 +807,51 @@
 Date().getTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22simon%22, %22simo
@@ -989,20 +989,35 @@
 etTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22alexa
@@ -1171,20 +1171,35 @@
 etTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22nicol
@@ -1353,20 +1353,35 @@
 etTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22cyril
@@ -1531,20 +1531,35 @@
 etTime()
-+
+-(24*3600*1000*
 i++
+)
 , %22jean-
@@ -1723,12 +1723,27 @@
 me()
-+
+-(24*3600*1000*
 i++
+)
 , %22s
@@ -1897,10 +1897,25 @@
 me()
-+i
+-(24*3600*1000*i)
 , %22a

Generate Events with different days