mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Added deprecated tag on createLinphoneFriend methods in LinphoneCoreFactory
This commit is contained in:
parent
66715b35bc
commit
c23ac67e0e
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue