public class SendNotification extends Object
| Constructor and Description |
|---|
SendNotification(DiscoveryConfiguration discoveryCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String identifier,
Double quotaAssigned,
Double quotaUsage,
Double percent) |
String |
getJsonResult(String url,
String token,
String role) |
boolean |
SendNotificationAdmin(List<String> userExceedQuota)
Send notification with a list of user exceed to admin role
|
boolean |
sendNotificationUser(String identifier,
Double quotaAssigned,
Double quotaUsage,
Double percent,
String type) |
Boolean |
writeMsg(String path,
org.json.JSONObject urlParameters,
String token) |
public SendNotification(DiscoveryConfiguration discoveryCheck)
public void configure(String identifier, Double quotaAssigned, Double quotaUsage, Double percent)
public boolean sendNotificationUser(String identifier, Double quotaAssigned, Double quotaUsage, Double percent, String type) throws org.json.JSONException
org.json.JSONExceptionpublic boolean SendNotificationAdmin(List<String> userExceedQuota) throws Exception
userExceedQuota - Exceptionpublic Boolean writeMsg(String path, org.json.JSONObject urlParameters, String token) throws Exception
url - IOExceptionorg.apache.http.client.ClientProtocolExceptionorg.json.JSONExceptionExceptionCopyright © 2019. All Rights Reserved.