diff --git a/core/src/main/groovy/com/muwire/core/search/DeleteEvent.groovy b/core/src/main/groovy/com/muwire/core/search/DeleteEvent.groovy new file mode 100644 index 00000000..34edc59e --- /dev/null +++ b/core/src/main/groovy/com/muwire/core/search/DeleteEvent.groovy @@ -0,0 +1,16 @@ +package com.muwire.core.search + +import com.muwire.core.Event + +import net.i2p.data.Base32 +import net.i2p.data.Destination + +class DeleteEvent extends Event { + byte [] infoHash + Destination leaf + + @Override + public String toString() { + "DeleteEvent ${super.toString()} infoHash:${Base32.encode(infoHash)} leaf:${leaf.toBase32()}" + } +} diff --git a/core/src/main/groovy/com/muwire/core/search/UpsertEvent.groovy b/core/src/main/groovy/com/muwire/core/search/UpsertEvent.groovy new file mode 100644 index 00000000..3594ce2e --- /dev/null +++ b/core/src/main/groovy/com/muwire/core/search/UpsertEvent.groovy @@ -0,0 +1,18 @@ +package com.muwire.core.search + +import com.muwire.core.Event + +import net.i2p.data.Base32 +import net.i2p.data.Destination + +class UpsertEvent extends Event { + + List names + byte [] infoHash + Destination leaf + + @Override + public String toString() { + "UpsertEvent ${super.toString()} names:$names infoHash:${Base32.encode(infoHash)} leaf:${leaf.toBase32()}" + } +}