public class RequestFileTransfer extends FileDistributionMessage
Constructor and Description |
---|
RequestFileTransfer(java.lang.String deviceAsking,
MD5Hash idOfFile,
java.lang.String deviceThatHasFile)
Instantiates a new request file transfer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deviceThatHasFile()
Device that has file.
|
java.lang.String |
getDeviceAsking()
Gets the device asking.
|
MD5Hash |
getIDOfFile()
Gets the ID of file.
|
public RequestFileTransfer(java.lang.String deviceAsking, MD5Hash idOfFile, java.lang.String deviceThatHasFile)
deviceAsking
- the device askingidOfFile
- the id of filedeviceThatHasFile
- the device that has filepublic java.lang.String deviceThatHasFile()
public java.lang.String getDeviceAsking()
public MD5Hash getIDOfFile()