events associated with updating a feed

This commit is contained in:
Zlatin Balevsky
2020-03-09 17:37:17 +00:00
parent 57c75978b6
commit 12e56b1c9a
3 changed files with 22 additions and 0 deletions

View File

@@ -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
}

View File

@@ -0,0 +1,5 @@
package com.muwire.core.filefeeds;
public enum FeedFetchStatus {
CONNECTING, FETCHING, FINISHED, FAILED
}

View File

@@ -0,0 +1,7 @@
package com.muwire.core.filefeeds
import com.muwire.core.Event
class FeedItemFetchedEvent extends Event {
FeedItem item
}