com.github.petruki.switcher.client.domain.AuthResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switcher-client Show documentation
Show all versions of switcher-client Show documentation
Switcher Client for working with Switcher API
package com.github.petruki.switcher.client.domain;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
* @author rogerio
* @since 2019-12-24
*/
@JsonSerialize
public class AuthResponse {
private String token;
private long exp;
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
public void setExp(long exp) {
this.exp = exp;
}
public boolean isExpired() {
return this.exp*1000 < System.currentTimeMillis();
}
}