All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinypass.client.common.AccessGrantedEvent Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
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 AccessGrantedEvent 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);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy