Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DataGSM의 OpenAPI를 추상화된 환경에서 제공합니다.
<dependency>
<groupId>com.github.themoment-team</groupId>
<artifactId>datagsm-openapi-sdk-java</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
```
### 설치 - Gradle
Expand All @@ -27,7 +27,7 @@ repositories {
}

dependencies {
implementation 'com.github.themoment-team:datagsm-openapi-sdk-java:1.6.0'
implementation 'com.github.themoment-team:datagsm-openapi-sdk-java:1.7.0'
}
```

Expand All @@ -38,7 +38,7 @@ repositories {
}

dependencies {
implementation("com.github.themoment-team:datagsm-openapi-sdk-java:1.6.0")
implementation("com.github.themoment-team:datagsm-openapi-sdk-java:1.7.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "team.themoment.datagsm.sdk"
version = "1.6.0"
version = "1.7.0"

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public class Project {
private Long id;
private String name;
private String description;
private int startYear;
private Integer endYear;
private ProjectStatus status;
private Club club;
private List<ParticipantInfo> participants = new ArrayList<>();

Expand Down Expand Up @@ -40,6 +43,30 @@ public void setDescription(String description) {
this.description = description;
}

public int getStartYear() {
return startYear;
}

public void setStartYear(int startYear) {
this.startYear = startYear;
}

public Optional<Integer> getEndYear() {
return Optional.ofNullable(endYear);
}

public void setEndYear(Integer endYear) {
this.endYear = endYear;
}

public ProjectStatus getStatus() {
return status;
}

public void setStatus(ProjectStatus status) {
this.status = status;
}

public Optional<Club> getClub() {
return Optional.ofNullable(club);
}
Expand All @@ -62,6 +89,9 @@ public String toString() {
"id=" + id +
", name='" + name + '\'' +
", description='" + description + '\'' +
", startYear=" + startYear +
", endYear=" + endYear +
", status=" + status +
", club=" + club +
", participants=" + participants +
'}';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package team.themoment.datagsm.sdk.openapi.model;

/**
* 프로젝트 운영 상태
*/
public enum ProjectStatus {
/**
* 운영 중인 프로젝트
*/
ACTIVE,

/**
* 종료된 프로젝트
*/
ENDED
}