diff --git a/src/main/java/org/gitlab4j/api/models/OauthTokenResponse.java b/src/main/java/org/gitlab4j/api/models/OauthTokenResponse.java new file mode 100644 index 0000000000000000000000000000000000000000..c0f4396a62a0f12ade085dd26f7eed3e8119a698 --- /dev/null +++ b/src/main/java/org/gitlab4j/api/models/OauthTokenResponse.java @@ -0,0 +1,56 @@ +package org.gitlab4j.api.models; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class OauthTokenResponse { + + private String accessToken; + private String tokenType; + private String refreshToken; + private String scope; + private Long createdAt; + + public String getAccessToken() { + return accessToken; + } + + public void setAccessToken(String accessToken) { + this.accessToken = accessToken; + } + + public String getTokenType() { + return tokenType; + } + + public void setTokenType(String tokenType) { + this.tokenType = tokenType; + } + + public String getRefreshToken() { + return refreshToken; + } + + public void setRefreshToken(String refreshToken) { + this.refreshToken = refreshToken; + } + + public String getScope() { + return scope; + } + + public void setScope(String scope) { + this.scope = scope; + } + + public Long getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } +}