Added deprecated tag on createLinphoneFriend methods in LinphoneCoreFactory

This commit is contained in:
Sylvain Berfini 2017-01-18 10:36:43 +01:00
parent 66715b35bc
commit c23ac67e0e
2 changed files with 3 additions and 1 deletions

View file

@ -150,7 +150,7 @@ public class TutorialBuddyStatus implements LinphoneCoreListener {
try {
// Create friend object from string address
LinphoneFriend lf = lcFactory.createLinphoneFriend(sipAddress);
LinphoneFriend lf = lc.createFriendWithAddress(sipAddress);
if (lf == null) {
write("Could not create friend; weird SIP address?");
return;

View file

@ -174,11 +174,13 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
}
@Override
@Deprecated
public LinphoneFriend createLinphoneFriend(String friendUri) {
return new LinphoneFriendImpl(friendUri);
}
@Override
@Deprecated
public LinphoneFriend createLinphoneFriend() {
return createLinphoneFriend(null);
}