IAccount

public interface IAccount

Represents a local sip account

Methods

addBuddy

public boolean addBuddy(String uri)

Add a buddy to this account.

Parameters:
  • uri – the buddy sip uri
Returns:

True if the buddy was added to the buddy list, False otherwise

getBuddies

public IBuddy[] getBuddies()

Get the list of buddies of the current registered account

Returns:the list of the buddies of the currently registered account

getBuddy

public IBuddy getBuddy(String uri)

Get the buddy with the given extension, or null if it is not found

Parameters:
  • uri – the buddy uri
Returns:

the buddy with the provided uri, or null if it is not found

getState

public AccountState getState()

Get the current state of this account

Returns:the current state of this account

getUri

public String getUri()

Get the uri of this sip account

Returns:the sip uri of this account

removeBuddy

public boolean removeBuddy(String uri)

Remove the buddy from this account

Parameters:
  • uri – The sip uri of the buddy to remove
Returns:

True if the buddy was found and it was successfully removed, False otherwise