1 package net.pterodactylus.sone.text;
4 * {@link Part} implementation that holds a freemail address.
6 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
8 public class FreemailPart implements Part {
10 private final String emailLocalPart;
11 private final String freemailId;
12 private final String identityId;
14 public FreemailPart(String emailLocalPart, String freemailId, String identityId) {
15 this.emailLocalPart = emailLocalPart;
16 this.freemailId = freemailId;
17 this.identityId = identityId;
21 public String getText() {
22 return String.format("%s@%s.freemail", emailLocalPart, freemailId);
25 public String getEmailLocalPart() {
26 return emailLocalPart;
29 public String getFreemailId() {
33 public String getIdentityId() {