Skip to content

Commit

Permalink
#550 Removed setter methods from Token and LanguageValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Jun 13, 2024
1 parent 917a667 commit 2922033
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.Instant;

/**
* Path: <code>/api/v1/cs/psv/oauth/token</code>
* */
public class Token {

@JsonProperty("access_token")
Expand All @@ -13,39 +18,30 @@ public class Token {
@JsonProperty("expires_in")
String expiresIn;

Instant createdAt;

public Token() {
createdAt = Instant.now();
}

public String getAccessToken() {
return accessToken;
}

public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}

public String getScope() {
return scope;
}

public void setScope(String scope) {
this.scope = scope;
}

public String getExpiresIn() {
return expiresIn;
}

public void setExpiresIn(String expiresIn) {
this.expiresIn = expiresIn;
}

public String getTokenType() {
return tokenType;
}

public void setTokenType(String tokenType) {
this.tokenType = tokenType;
public Instant getCreatedAt() {
return createdAt;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Path: <code>/api/v1/cs/sys/values/languageValue</code>
* */
public class LanguageValue {
@JsonProperty("id")
int id;
Expand All @@ -24,66 +27,34 @@ public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public String getLockVersion() {
return lockVersion;
}

public void setLockVersion(String lockVersion) {
this.lockVersion = lockVersion;
}

public String getShortText() {
return shortText;
}

public void setShortText(String shortText) {
this.shortText = shortText;
}

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}

public int getSortOrder() {
return sortOrder;
}

public void setSortOrder(int sortOrder) {
this.sortOrder = sortOrder;
}

public String getUniqueName() {
return uniqueName;
}

public void setUniqueName(String uniqueName) {
this.uniqueName = uniqueName;
}

public String getIso6392() {
return iso6392;
}

public void setIso6392(String iso6392) {
this.iso6392 = iso6392;
}

public String getIso6391() {
return iso6391;
}

public void setIso6391(String iso6391) {
this.iso6391 = iso6391;
}

@Override
public String toString() {
return id + ":" + uniqueName;
Expand Down

0 comments on commit 2922033

Please sign in to comment.