Skip to content

Commit

Permalink
Merge pull request #3 from buckett/include-account
Browse files Browse the repository at this point in the history
Allow the account to be retrieved with the course.
  • Loading branch information
buckett authored May 15, 2020
2 parents 32fc3a4 + 1deb32e commit 452991c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/edu/ksu/canvas/model/Course.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class Course extends BaseCanvasModel implements Serializable {
private String syllabusBody;
private String courseFormat;
private Boolean enableSisReactivation;
private Account account;

private List<Section> sections;
private List<Enrollment> enrollments;
Expand Down Expand Up @@ -399,4 +400,12 @@ public Boolean getEnableSisReactivation() {
public void setEnableSisReactivation(Boolean enableSisReactivation) {
this.enableSisReactivation = enableSisReactivation;
}

public Account getAccount() {
return account;
}

public void setAccount(Account account) {
this.account = account;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum Include {
//same include options as list courses call
NEEDS_GRADING_COUNT, SYLLABUS_BODY, TOTAL_SCORES, TERM, COURSE_PROGRESS,
SECTIONS, STORAGE_QUOTA_USED_MB, TOTAL_STUDENTS, FAVORITES, TEACHERS,
OBSERVED_USERS, CURRENT_GRADING_PERIOD_SCORES,
OBSERVED_USERS, CURRENT_GRADING_PERIOD_SCORES, ACCOUNT,
//options specific to get single course call
ALL_COURSES, PERMISSIONS, LICENSE;

Expand Down

0 comments on commit 452991c

Please sign in to comment.