Created
July 27, 2020 07:32
-
-
Save balvinder294/344284456e06c37d5afcdf08b8381092 to your computer and use it in GitHub Desktop.
DTO for handling response For OAuth Token from Apple SignIn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class TokenResponse { | |
private String access_token; | |
private String token_type; | |
private Long expires_in; | |
private String refresh_token; | |
private String id_token; | |
public String getAccess_token() { | |
return access_token; | |
} | |
public void setAccess_token(String access_token) { | |
this.access_token = access_token; | |
} | |
public String getToken_type() { | |
return token_type; | |
} | |
public void setToken_type(String token_type) { | |
this.token_type = token_type; | |
} | |
public Long getExpires_in() { | |
return expires_in; | |
} | |
public void setExpires_in(Long expires_in) { | |
this.expires_in = expires_in; | |
} | |
public String getRefresh_token() { | |
return refresh_token; | |
} | |
public void setRefresh_token(String refresh_token) { | |
this.refresh_token = refresh_token; | |
} | |
public String getId_token() { | |
return id_token; | |
} | |
public void setId_token(String id_token) { | |
this.id_token = id_token; | |
} | |
@Override | |
public String toString() { | |
return "TokenResponse [access_token=" + access_token + ", expires_in=" + expires_in + ", id_token=" + id_token | |
+ ", refresh_token=" + refresh_token + ", token_type=" + token_type + "]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment