mirror of https://github.com/zlatinb/muwire
upsert and delete events
parent
376075df8a
commit
76b190b742
|
@ -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()}"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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<String> names
|
||||||
|
byte [] infoHash
|
||||||
|
Destination leaf
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
"UpsertEvent ${super.toString()} names:$names infoHash:${Base32.encode(infoHash)} leaf:${leaf.toBase32()}"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue