private final Profile profile;
+ private final Boolean discoverable;
+
public Recipient(
final RecipientId recipientId,
final RecipientAddress address,
final Contact contact,
final ProfileKey profileKey,
final ExpiringProfileKeyCredential expiringProfileKeyCredential,
- final Profile profile
+ final Profile profile,
+ final Boolean discoverable
) {
this.recipientId = recipientId;
this.address = address;
this.profileKey = profileKey;
this.expiringProfileKeyCredential = expiringProfileKeyCredential;
this.profile = profile;
+ this.discoverable = discoverable;
}
private Recipient(final Builder builder) {
address = builder.address;
contact = builder.contact;
profileKey = builder.profileKey;
- expiringProfileKeyCredential = builder.expiringProfileKeyCredential1;
+ expiringProfileKeyCredential = builder.expiringProfileKeyCredential;
profile = builder.profile;
+ discoverable = builder.discoverable;
}
public static Builder newBuilder() {
builder.address = copy.getAddress();
builder.contact = copy.getContact();
builder.profileKey = copy.getProfileKey();
- builder.expiringProfileKeyCredential1 = copy.getExpiringProfileKeyCredential();
+ builder.expiringProfileKeyCredential = copy.getExpiringProfileKeyCredential();
builder.profile = copy.getProfile();
return builder;
}
return profile;
}
+ public Boolean getDiscoverable() {
+ return discoverable;
+ }
+
@Override
public boolean equals(final Object o) {
if (this == o) return true;
private RecipientAddress address;
private Contact contact;
private ProfileKey profileKey;
- private ExpiringProfileKeyCredential expiringProfileKeyCredential1;
+ private ExpiringProfileKeyCredential expiringProfileKeyCredential;
private Profile profile;
+ private Boolean discoverable;
private Builder() {
}
}
public Builder withExpiringProfileKeyCredential(final ExpiringProfileKeyCredential val) {
- expiringProfileKeyCredential1 = val;
+ expiringProfileKeyCredential = val;
return this;
}
return this;
}
+ public Builder withDiscoverable(final Boolean val) {
+ discoverable = val;
+ return this;
+ }
+
public Recipient build() {
return new Recipient(this);
}