
com.aliyun.openservices.log.common.SmsNotification Maven / Gradle / Ivy
package com.aliyun.openservices.log.common;
import com.alibaba.fastjson.annotation.JSONField;
import com.aliyun.openservices.log.util.JsonUtils;
import com.alibaba.fastjson.JSONObject;
import java.util.List;
public class SmsNotification extends Notification {
@JSONField
private List mobileList;
SmsNotification(NotificationType type) {
super(type);
}
public SmsNotification() {
super(NotificationType.SMS);
}
public List getMobileList() {
return mobileList;
}
public void setMobileList(List mobileList) {
this.mobileList = mobileList;
}
@Override
public void deserialize(final JSONObject value) {
super.deserialize(value);
mobileList = JsonUtils.readStringList(value, Consts.MOBILE_LIST);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SmsNotification that = (SmsNotification) o;
return getMobileList() != null ? getMobileList().equals(that.getMobileList()) : that.getMobileList() == null;
}
@Override
public int hashCode() {
return getMobileList() != null ? getMobileList().hashCode() : 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy