changed respType to match reqType for list_groups and list_contacts

This commit is contained in:
Carl Bingel 2020-02-18 22:44:59 +01:00
parent 8516090552
commit ae71e7b7d3

View file

@ -59,7 +59,7 @@ public class JsonEventLoopCommand implements LocalCommand {
List<GroupInfo> groups = m.getGroups(); List<GroupInfo> groups = m.getGroups();
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
JsonNode data_obj = mapper.valueToTree(groups); JsonNode data_obj = mapper.valueToTree(groups);
return new JsonEventLoopStatusReport( "group_list", reqID, data_obj); return new JsonEventLoopStatusReport( "list_groups", reqID, data_obj);
} }
/** /**
@ -69,7 +69,7 @@ public class JsonEventLoopCommand implements LocalCommand {
List<ContactInfo> contacts = m.getContacts(); List<ContactInfo> contacts = m.getContacts();
ObjectMapper mpr = new ObjectMapper(); ObjectMapper mpr = new ObjectMapper();
JsonNode data_obj = mpr.valueToTree(contacts); JsonNode data_obj = mpr.valueToTree(contacts);
return new JsonEventLoopStatusReport( "contact_list", reqID, data_obj); return new JsonEventLoopStatusReport( "list_contacts", reqID, data_obj);
} }
/** /**