diff --git a/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchEvent.groovy b/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchEvent.groovy new file mode 100644 index 00000000..202e8151 --- /dev/null +++ b/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchEvent.groovy @@ -0,0 +1,10 @@ +package com.muwire.core.filefeeds + +import com.muwire.core.Event +import com.muwire.core.Persona + +class FeedFetchEvent extends Event { + Persona host + FeedFetchStatus status + int totalItems +} diff --git a/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchStatus.java b/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchStatus.java new file mode 100644 index 00000000..7545252e --- /dev/null +++ b/core/src/main/groovy/com/muwire/core/filefeeds/FeedFetchStatus.java @@ -0,0 +1,5 @@ +package com.muwire.core.filefeeds; + +public enum FeedFetchStatus { + CONNECTING, FETCHING, FINISHED, FAILED +} diff --git a/core/src/main/groovy/com/muwire/core/filefeeds/FeedItemFetchedEvent.groovy b/core/src/main/groovy/com/muwire/core/filefeeds/FeedItemFetchedEvent.groovy new file mode 100644 index 00000000..75885f5a --- /dev/null +++ b/core/src/main/groovy/com/muwire/core/filefeeds/FeedItemFetchedEvent.groovy @@ -0,0 +1,7 @@ +package com.muwire.core.filefeeds + +import com.muwire.core.Event + +class FeedItemFetchedEvent extends Event { + FeedItem item +}