com.github.switcherapi.client.model.response.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 SDK for working with Switcher API
package com.github.switcherapi.client.model.response;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
* @author Roger Floriano (petruki)
* @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 * 1000;
}
public boolean isExpired() {
return this.exp < System.currentTimeMillis();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy