com.tinypass.client.common.AccessModifiedEvent Maven / Gradle / Ivy
package com.tinypass.client.common;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class AccessModifiedEvent extends Event {
private String aid;
private Long expires;
private String termId;
private String uid;
private String rid;
private String accessId;
private String userEmail;
private String contractId;
private String paymentId;
private String conversionId;
public String getAid() {
return aid;
}
public void setAid(String aid) {
this.aid = aid;
}
public Long getExpires() {
return expires;
}
public void setExpires(Long expires) {
this.expires = expires;
}
public String getTermId() {
return termId;
}
public void setTermId(String termId) {
this.termId = termId;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getRid() {
return rid;
}
public void setRid(String rid) {
this.rid = rid;
}
public String getAccessId() {
return accessId;
}
public void setAccessId(String accessId) {
this.accessId = accessId;
}
public String getUserEmail() {
return userEmail;
}
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
public String getContractId() {
return contractId;
}
public void setContractId(String contractId) {
this.contractId = contractId;
}
public String getPaymentId() {
return paymentId;
}
public void setPaymentId(String paymentId) {
this.paymentId = paymentId;
}
public String getConversionId() {
return conversionId;
}
public void setConversionId(String conversionId) {
this.conversionId = conversionId;
}
public boolean isExpirationUnlimited() {
return getExpires() == null;
}
public boolean isExpired() {
final Long exp = getExpires();
return exp != null && exp < (int) (System.currentTimeMillis() / 1000L);
}
}