public class AlertTemperature extends Alert
Constructor and Description |
---|
AlertTemperature(int id,
java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String emailSubject,
java.lang.String emailContent,
boolean enabled,
double temperatureMin,
double temperatureMax)
Deprecated.
Deprecated for SDK users. Exclusively designed for internal usages.
|
AlertTemperature(java.lang.String to,
java.lang.String emailSubject,
java.lang.String emailContent,
boolean enabled,
double temperatureMin,
double temperatureMax)
Default constructor.
|
AlertTemperature(java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String emailSubject,
java.lang.String emailContent,
boolean enabled,
double temperatureMin,
double temperatureMax)
Complete constructor, full set of parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getTemperatureMax() |
double |
getTemperatureMin() |
java.lang.String |
serialize()
Format the data with markers (XML-like format) and encode it with base64.
|
void |
setTemperatureMax(double temperatureMax)
Update maximum temperature threshold.
|
void |
setTemperatureMin(double temperatureMin)
Update minimum temperature threshold.
|
deserialize, getBccList, getCcList, getEmailContent, getEmailSubject, getId, getToList, getType, isEnabled, setBccList, setCcList, setEmailContent, setEmailSubject, setEnabled, setToList
public AlertTemperature(java.lang.String to, java.lang.String emailSubject, java.lang.String emailContent, boolean enabled, double temperatureMin, double temperatureMax)
to
- List of email addresses (split with commas) to send the alert to.emailSubject
- Subject of the email to be sent.emailContent
- Content of the email to be sent.enabled
- If false, the alert will not be used by SmartServer (AlertCenter).temperatureMin
- Min. temperature threshold to trigger the alert.temperatureMax
- Max. temperature threshold to trigger the alert.public AlertTemperature(java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String emailSubject, java.lang.String emailContent, boolean enabled, double temperatureMin, double temperatureMax)
to
- List of email addresses (split with commas) to send the alert to.cc
- List of "Cc" recipients (split with commas).bcc
- List of "Bcc" recipients (split with commas).emailSubject
- Subject of the email to be sent.emailContent
- Content of the email to be sent.enabled
- If false, the alert will not be used by SmartServer (AlertCenter).temperatureMin
- Min. temperature threshold to trigger the alert.temperatureMax
- Max. temperature threshold to trigger the alert.@Deprecated public AlertTemperature(int id, java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String emailSubject, java.lang.String emailContent, boolean enabled, double temperatureMin, double temperatureMax)
id
- Should not be set manually, please consider using another constructor.to
- List of email addresses (split with commas) to send the alert to.cc
- List of "Cc" recipients (split with commas).bcc
- List of "Bcc" recipients (split with commas).emailSubject
- Subject of the email to be sent.emailContent
- Content of the email to be sent.enabled
- If false, the alert will not be used by SmartServer (AlertCenter).temperatureMin
- Min. temperature threshold to trigger the alert.temperatureMax
- Max. temperature threshold to trigger the alert.public java.lang.String serialize()
Alert
public double getTemperatureMin()
public double getTemperatureMax()
public void setTemperatureMin(double temperatureMin)
temperatureMin
- New min. value.public void setTemperatureMax(double temperatureMax)
temperatureMax
- New max. value.