getGroupIds() returns a list of group ids (byte arrays)
void setContactName(String number, String name);
+ List<byte[]> getGroupIds();
+
String getGroupName(byte[] groupId);
List<String> getGroupMembers(byte[] groupId);
save();
}
+ @Override
+ public List<byte[]> getGroupIds() {
+ List<GroupInfo> groups = getGroups();
+ List<byte[]> ids = new ArrayList<byte[]>(groups.size());
+ for (GroupInfo group : groups) {
+ ids.add(group.groupId);
+ }
+ return ids;
+ }
+
@Override
public String getGroupName(byte[] groupId) {
GroupInfo group = getGroup(groupId);