add toString

pull/5/head
Zlatin Balevsky 2019-06-25 22:24:15 +01:00
parent 5d46e9b796
commit a655c4ef50
2 changed files with 11 additions and 0 deletions

View File

@ -7,4 +7,10 @@ class FileHashedEvent extends Event {
SharedFile sharedFile
String error
@Override
public String toString() {
super.toString() + " sharedFile " + sharedFile?.file.getAbsolutePath() + " error: $error"
}
}

View File

@ -5,4 +5,9 @@ import com.muwire.core.Event
class FileSharedEvent extends Event {
File file
@Override
public String toString() {
return super.toString() + " file: "+file.getAbsolutePath()
}
}