From b59dc8318c61d671d56075fb63987c4f0ce19d6d Mon Sep 17 00:00:00 2001 From: Simon Morlat <simon.morlat@linphone.org> Date: Tue, 27 Apr 2010 15:53:02 +0200 Subject: [PATCH] enrich linphoneaddress --- java/org/linphone/core/LinphoneAddress.java | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/java/org/linphone/core/LinphoneAddress.java b/java/org/linphone/core/LinphoneAddress.java index 86271674c9..16c688470e 100644 --- a/java/org/linphone/core/LinphoneAddress.java +++ b/java/org/linphone/core/LinphoneAddress.java @@ -34,13 +34,30 @@ public interface LinphoneAddress { * @return null if not set */ public String getDomain(); + public String getPort(); + public int getPortInt(); /** * set display name * @param name */ public void setDisplayName(String name); + public void setUserName(String username); + public void setDomain(String domain); + public void setPort(String port); + public void setPortInt(int port); + public void clean(); + /** - * @return an URI version of the address that can be used to place a call using {@link LinphoneCore#invite(String)} + * + * @return the address as a string. + */ + public String asString(); + /** + * + * @return the address without display name as a string. */ - public String toUri(); + public String asStringUriOnly(); + + /*must return the same thing as asString()*/ + public String toString(); } -- GitLab