VoipLibBackend.MyAccount

class MyAccount extends Account implements IAccount

Fields

buddyList

public HashMap<String, MyBuddy> buddyList

cfg

public AccountConfig cfg

Constructors

MyAccount

MyAccount(AccountConfig config)

Methods

addBuddy

public boolean addBuddy(String buddyUri)

addBuddy

public MyBuddy addBuddy(BuddyConfig bud_cfg)

add a buddy to this account , if not already added

Parameters:
  • bud_cfg
Returns:

the added buddy, null idf the buddy was previuosly added or an error occurred

delBuddy

public MyBuddy delBuddy(String uri)

delete the buddy with the given uri from the account

Parameters:
  • uri
Returns:

the removed buddy, or null if the buddy to remove was not found.

getBuddies

public IBuddy[] getBuddies()

getBuddy

public IBuddy getBuddy(String buddyUri)

getState

public AccountState getState()

getUri

public String getUri()

hasBuddy

public boolean hasBuddy(String uri)

onIncomingCall

public void onIncomingCall(OnIncomingCallParam prm)

onIncomingSubscribe

public void onIncomingSubscribe(OnIncomingSubscribeParam prm)

onInstantMessage

public void onInstantMessage(OnInstantMessageParam prm)

onRegState

public void onRegState(OnRegStateParam prm)

removeBuddy

public boolean removeBuddy(String buddyUri)