summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models/FeedModel.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-11-03 07:46:10 -0400
committerJames Moger <james.moger@gitblit.com>2011-11-03 07:46:10 -0400
commitbab9c96e0f4730d52415469c45b92798e03f0733 (patch)
treebaee46c34e121fce10ed0b7d9fc4b834c09c1aff /src/com/gitblit/models/FeedModel.java
parent6477ce2aa8540fedbec7ebba5656cd3968e78019 (diff)
downloadgitblit-bab9c96e0f4730d52415469c45b92798e03f0733.tar.gz
gitblit-bab9c96e0f4730d52415469c45b92798e03f0733.zip
Differentiate new activity on feeds panel
Diffstat (limited to 'src/com/gitblit/models/FeedModel.java')
-rw-r--r--src/com/gitblit/models/FeedModel.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/gitblit/models/FeedModel.java b/src/com/gitblit/models/FeedModel.java
index d5535850..08f9e48e 100644
--- a/src/com/gitblit/models/FeedModel.java
+++ b/src/com/gitblit/models/FeedModel.java
@@ -29,7 +29,8 @@ public class FeedModel implements Serializable, Comparable<FeedModel> {
public String repository;
public String branch;
- public Date lastRefresh;
+ public Date lastRefreshDate;
+ public Date currentRefreshDate;
public boolean subscribed;
@@ -42,7 +43,8 @@ public class FeedModel implements Serializable, Comparable<FeedModel> {
public FeedModel(String definition) {
subscribed = true;
- lastRefresh = new Date(0);
+ lastRefreshDate = new Date(0);
+ currentRefreshDate = new Date(0);
String[] fields = definition.split(":");
repository = fields[0];
@@ -76,7 +78,7 @@ public class FeedModel implements Serializable, Comparable<FeedModel> {
@Override
public int hashCode() {
- return (repository + (StringUtils.isEmpty(branch) ? "" : branch)).toLowerCase().hashCode();
+ return toString().toLowerCase().hashCode();
}
@Override