mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
briar-headless: Add API to list all contacts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package org.briarproject.bramble.identity;
|
||||
|
||||
import org.briarproject.bramble.api.identity.Author;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public class OutputAuthor {
|
||||
|
||||
public final byte[] id;
|
||||
public final String name;
|
||||
public final byte[] publicKey;
|
||||
|
||||
public OutputAuthor(Author author) {
|
||||
this.id = author.getId().getBytes();
|
||||
this.name = author.getName();
|
||||
this.publicKey = author.getPublicKey();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user