Debug notification preferences
This commit is contained in:
parent
39b76c1476
commit
b3d7ef8c85
|
@ -293,7 +293,13 @@ public class LibClient extends BaseClient{
|
||||||
Validate.isTrue(userid != null, "userid cannot be null");
|
Validate.isTrue(userid != null, "userid cannot be null");
|
||||||
logger.debug("Request for set user notification preferences");
|
logger.debug("Request for set user notification preferences");
|
||||||
String thisMethodSignature = "set-notification-preference-lib";
|
String thisMethodSignature = "set-notification-preference-lib";
|
||||||
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid;;
|
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid;
|
||||||
|
for(NotificationType notificationType: enabledChannels.keySet()){
|
||||||
|
logger.info("Type: " + notificationType.toString());
|
||||||
|
for(NotificationChannelType channelType: enabledChannels.get(notificationType)){
|
||||||
|
logger.info(channelType.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
return HttpClient.post(new GenericType<ResponseBean<Boolean>>(){}, request, enabledChannels);
|
return HttpClient.post(new GenericType<ResponseBean<Boolean>>(){}, request, enabledChannels);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue