/// <summary> /// Retrieves the all groups of all registered devices. /// </summary> /// <param name="callback">Method to be called just after getting device groups</param> public static void getDeviceGroups(Action <List <String>, Exception> callback) { Dictionary <string, object> postParameters = new Dictionary <string, object>(); postParameters.Add(NetmeraConstants.Netmera_Push_Apikey, NetmeraClient.securityToken); String url = NetmeraConstants.Netmera_Domain_Url + NetmeraConstants.Netmera_Push_Server_Url + NetmeraConstants.Netmera_Push_Get_Device_Groups; if (callback != null) { NetmeraHttpUtils.getDeviceGroups(url, postParameters, callback); } }