taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 57 forks source link

Get all contacts #29

Closed sashok7241 closed 9 years ago

sashok7241 commented 11 years ago

Method to get all contacts in list (including not authorized) not implemented...

fabiodepin commented 11 years ago

Hi, I took a look on what proposed, but the Skype protocol seems not implement this method. So I think not compensate implement the API. I recommend calling the methods separately.

Example:

List allContactList = new ArrayList();
allContactList.addAll(Arrays.asList(Skype.getContactList().getAllFriends()));
allContactList.addAll(Arrays.asList(Skype.getContactList().getAllUserWaitingForAuthorization()));
for(int i=0; i < allContactList.size(); i++){
  System.out.println(allContactList.get(i));
}
taksan commented 9 years ago

@fabiodepin suggestions works fine. The api should keep as lean as possible, so I'd rather not add methods that are just logic using the ones already provided by the API