You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
951 B
24 lines
951 B
package foundation.pEp.jniadapter.test.jni92;
|
|
import foundation.pEp.jniadapter.test.utils.TestUtils;
|
|
import foundation.pEp.jniadapter.*;
|
|
|
|
class SyncCallbacks implements Sync.MessageToSendCallback, Sync.NotifyHandshakeCallback {
|
|
public void messageToSend(Message message)
|
|
{
|
|
TestUtils.logH2("Message to send called");
|
|
TestUtils.log("From: " + message.getFrom());
|
|
TestUtils.log("To: " + message.getTo());
|
|
TestUtils.log("Subject: " + message.getShortmsg());
|
|
TestUtils.log("Attachement[0]: " + message.getAttachments().get(0).toString());
|
|
TestUtils.logSectEnd("");
|
|
}
|
|
|
|
public void notifyHandshake(Identity myself, Identity partner, SyncHandshakeSignal signal)
|
|
{
|
|
TestUtils.logH2("Notify handshake called");
|
|
TestUtils.log("Myself: " + myself);
|
|
TestUtils.log("Partner: " + partner);
|
|
TestUtils.log("Signal: " + signal);
|
|
TestUtils.logSectEnd("");
|
|
}
|
|
}
|