mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
37 lines
694 B
Java
37 lines
694 B
Java
package org.briarproject.api.sharing;
|
|
|
|
import org.briarproject.api.nullsafety.NotNullByDefault;
|
|
import org.briarproject.api.sync.GroupId;
|
|
|
|
import javax.annotation.concurrent.Immutable;
|
|
|
|
@Immutable
|
|
@NotNullByDefault
|
|
public abstract class InvitationItem<S extends Shareable> {
|
|
|
|
private final S shareable;
|
|
private final boolean subscribed;
|
|
|
|
public InvitationItem(S shareable, boolean subscribed) {
|
|
this.shareable = shareable;
|
|
this.subscribed = subscribed;
|
|
}
|
|
|
|
public S getShareable() {
|
|
return shareable;
|
|
}
|
|
|
|
public GroupId getId() {
|
|
return shareable.getId();
|
|
}
|
|
|
|
public String getName() {
|
|
return shareable.getName();
|
|
}
|
|
|
|
public boolean isSubscribed() {
|
|
return subscribed;
|
|
}
|
|
|
|
}
|