Added implementation of getContacts(int... ids).