mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
* force decline when two of our own identities are introduced to each other * throw away introduction requests to the same identity (impossible to trigger from UI) Closes #284
41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package org.briarproject.api.introduction;
|
|
|
|
import org.briarproject.api.identity.AuthorId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
public class IntroductionRequest extends IntroductionResponse {
|
|
|
|
private final String message;
|
|
private final boolean answered, exists, introducesOtherIdentity;
|
|
|
|
public IntroductionRequest(SessionId sessionId, MessageId messageId,
|
|
long time, boolean local, boolean sent, boolean seen, boolean read,
|
|
AuthorId authorId, String name, boolean accepted, String message,
|
|
boolean answered, boolean exists, boolean introducesOtherIdentity) {
|
|
|
|
super(sessionId, messageId, time, local, sent, seen, read, authorId,
|
|
name, accepted);
|
|
|
|
this.message = message;
|
|
this.answered = answered;
|
|
this.exists = exists;
|
|
this.introducesOtherIdentity = introducesOtherIdentity;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public boolean wasAnswered() {
|
|
return answered;
|
|
}
|
|
|
|
public boolean contactExists() {
|
|
return exists;
|
|
}
|
|
|
|
public boolean doesIntroduceOtherIdentity() {
|
|
return introducesOtherIdentity;
|
|
}
|
|
}
|