UVACanvasAccess
Public Member Functions | Properties | List of all members
UVACanvasAccess.Structures.Courses.Course Class Reference

Represents a course. More...

Inheritance diagram for UVACanvasAccess.Structures.Courses.Course:
Inheritance graph
[legend]
Collaboration diagram for UVACanvasAccess.Structures.Courses.Course:
Collaboration graph
[legend]

Public Member Functions

Task< CourseSettingsGetSettings ()
 Get this course's settings. More...
 
Task UpdateSettings (CourseSettings cs)
 Update this course's settings. More...
 
IAsyncEnumerable< EnrollmentStreamEnrollments (IEnumerable< Api.CourseEnrollmentRoleTypes > types=null, IEnumerable< Api.CourseEnrollmentState > states=null, Api.CourseEnrollmentIncludes? includes=null)
 Streams all enrollments for this course. More...
 
string ToPrettyString ()
 Returns a pretty, formatted string representation of the object.
 

Properties

ulong Id [get]
 The course id. More...
 
string SisCourseId [get]
 The SIS course id. More...
 
string Uuid [get]
 The course UUID. More...
 
string IntegrationId [get]
 The integration id. More...
 
ulong? SisImportId [get]
 The SIS import id. More...
 
string Name [get]
 The name of the course. More...
 
string OriginalName [get]
 The original name of the course, if the current user has a nickname set for this course. More...
 
string CourseCode [get]
 The course code. More...
 
string WorkflowState [get]
 The course's workflow state. One of: {unpublished, available, completed, deleted} More...
 
ulong AccountId [get]
 The id of the account the course is under. More...
 
ulong RootAccountId [get]
 The id of the root account the course is under. More...
 
ulong EnrollmentTermId [get]
 The id of the enrollment term the course is under. More...
 
ulong? GradingStandardId [get]
 The id of the grading standard associated with the course. More...
 
DateTime CreatedAt [get]
 When the course was created. More...
 
DateTime? StartAt [get]
 The start date of the course. More...
 
DateTime? EndAt [get]
 The end date of the course. More...
 
string Locale [get]
 The course's locale. More...
 
IEnumerable< EnrollmentEnrollments [get]
 Any enrollments for this course which are associated with the current user. More...
 
ulong? TotalStudents [get]
 The total amount of students in the course. More...
 
string CalendarLink [get]
 The course calendar link. More...
 
string DefaultView [get]
 The view type which users will first be shown when visiting the course page. More...
 
string SyllabusBody [get]
 The content of the course syllabus. More...
 
uint? NeedsGradingCount [get]
 The amount of submissions which need to be graded. More...
 
Term Term [get]
 The enrollment term this course is under. More...
 
CourseProgress CourseProgress [get]
 Course progress information. More...
 
bool? ApplyAssignmentGroupWeights [get]
 Whether the course applies assignment group weights. More...
 
Dictionary< string, bool > Permissions [get]
 The set of permissions the current user has in this course. More...
 
bool? IsPublic [get]
 Whether the course is public More...
 
bool? IsPublicToAuthUsers [get]
 Whether the course is visible to certain authorized users. More...
 
bool? PublicSyllabus [get]
 Whether the course has a public syllabus. More...
 
bool? PublicSyllabusToAuth [get]
 Whether the course has a syllabus visible to certain authorized users. More...
 
string PublicDescription [get]
 The public course description, if any. More...
 
ulong StorageQuotaMb [get]
 The course's storage quota, in MiB. More...
 
ulong StorageQuotaUsedMb [get]
 How many MiB of the storage quota have been used. More...
 
bool? HideFinalGrades [get]
 Whether the course hides final grades. More...
 
string License [get]
 The course's license string. More...
 
bool? AllowStudentAssignmentEdits [get]
 Whether the course allows assignment edits by students. More...
 
bool? AllowWikiComments [get]
 Whether the course allows wiki comments. More...
 
bool? AllowStudentForumAttachments [get]
 Whether the course allows forum attachments by students. More...
 
bool? OpenEnrollment [get]
 Whether the course allows open enrollment. More...
 
bool? SelfEnrollment [get]
 Whether the course allows self enrollment. More...
 
bool? RestrictEnrollmentsToCourseDates [get]
 Whether enrollments are restricted to the dates during which a course is active. More...
 
string CourseFormat [get]
 The course's format string. More...
 
bool? AccessRestrictedByDate [get]
 Whether the current user has been prevented from viewing the course due to date restrictions. More...
 
string TimeZone [get]
 The course's IANA time zone. More...
 
bool? Blueprint [get]
 Whether this course is a blueprint course. More...
 
Dictionary< string, bool > BlueprintRestrictions [get]
 Set of blueprint restrictions. More...
 
Dictionary< string, Dictionary< string, bool > > BlueprintRestrictionsByObjectType [get]
 Object-differentiated blueprint restrictions. More...
 

Detailed Description

Represents a course.

Member Function Documentation

◆ GetSettings()

Task<CourseSettings> UVACanvasAccess.Structures.Courses.Course.GetSettings ( )
inline

Get this course's settings.

Returns
This course's settings.

◆ StreamEnrollments()

IAsyncEnumerable<Enrollment> UVACanvasAccess.Structures.Courses.Course.StreamEnrollments ( IEnumerable< Api.CourseEnrollmentRoleTypes types = null,
IEnumerable< Api.CourseEnrollmentState states = null,
Api.CourseEnrollmentIncludes includes = null 
)
inline

Streams all enrollments for this course.

Parameters
types(Optional) The set of enrollment types to filter by.
states(Optional) The set of enrollment states to filter by.
includes(Optional) Data to include in the result.
Returns
The stream of enrollments.

◆ UpdateSettings()

Task UVACanvasAccess.Structures.Courses.Course.UpdateSettings ( CourseSettings  cs)
inline

Update this course's settings.

Parameters
csThe new settings to apply.
Returns
A Task which will complete when the operation finishes.

Property Documentation

◆ AccessRestrictedByDate

bool? UVACanvasAccess.Structures.Courses.Course.AccessRestrictedByDate
get

Whether the current user has been prevented from viewing the course due to date restrictions.

◆ AccountId

ulong UVACanvasAccess.Structures.Courses.Course.AccountId
get

The id of the account the course is under.

◆ AllowStudentAssignmentEdits

bool? UVACanvasAccess.Structures.Courses.Course.AllowStudentAssignmentEdits
get

Whether the course allows assignment edits by students.

◆ AllowStudentForumAttachments

bool? UVACanvasAccess.Structures.Courses.Course.AllowStudentForumAttachments
get

Whether the course allows forum attachments by students.

◆ AllowWikiComments

bool? UVACanvasAccess.Structures.Courses.Course.AllowWikiComments
get

Whether the course allows wiki comments.

◆ ApplyAssignmentGroupWeights

bool? UVACanvasAccess.Structures.Courses.Course.ApplyAssignmentGroupWeights
get

Whether the course applies assignment group weights.

◆ Blueprint

bool? UVACanvasAccess.Structures.Courses.Course.Blueprint
get

Whether this course is a blueprint course.

◆ BlueprintRestrictions

Dictionary<string, bool> UVACanvasAccess.Structures.Courses.Course.BlueprintRestrictions
get

Set of blueprint restrictions.

◆ BlueprintRestrictionsByObjectType

Dictionary<string, Dictionary<string, bool> > UVACanvasAccess.Structures.Courses.Course.BlueprintRestrictionsByObjectType
get

Object-differentiated blueprint restrictions.

◆ CalendarLink

string UVACanvasAccess.Structures.Courses.Course.CalendarLink
get

The course calendar link.

◆ CourseCode

string UVACanvasAccess.Structures.Courses.Course.CourseCode
get

The course code.

◆ CourseFormat

string UVACanvasAccess.Structures.Courses.Course.CourseFormat
get

The course's format string.

◆ CourseProgress

CourseProgress UVACanvasAccess.Structures.Courses.Course.CourseProgress
get

Course progress information.

◆ CreatedAt

DateTime UVACanvasAccess.Structures.Courses.Course.CreatedAt
get

When the course was created.

◆ DefaultView

string UVACanvasAccess.Structures.Courses.Course.DefaultView
get

The view type which users will first be shown when visiting the course page.

◆ EndAt

DateTime? UVACanvasAccess.Structures.Courses.Course.EndAt
get

The end date of the course.

◆ Enrollments

IEnumerable<Enrollment> UVACanvasAccess.Structures.Courses.Course.Enrollments
get

Any enrollments for this course which are associated with the current user.

◆ EnrollmentTermId

ulong UVACanvasAccess.Structures.Courses.Course.EnrollmentTermId
get

The id of the enrollment term the course is under.

◆ GradingStandardId

ulong? UVACanvasAccess.Structures.Courses.Course.GradingStandardId
get

The id of the grading standard associated with the course.

◆ HideFinalGrades

bool? UVACanvasAccess.Structures.Courses.Course.HideFinalGrades
get

Whether the course hides final grades.

◆ Id

ulong UVACanvasAccess.Structures.Courses.Course.Id
get

The course id.

◆ IntegrationId

string UVACanvasAccess.Structures.Courses.Course.IntegrationId
get

The integration id.

◆ IsPublic

bool? UVACanvasAccess.Structures.Courses.Course.IsPublic
get

Whether the course is public

◆ IsPublicToAuthUsers

bool? UVACanvasAccess.Structures.Courses.Course.IsPublicToAuthUsers
get

Whether the course is visible to certain authorized users.

◆ License

string UVACanvasAccess.Structures.Courses.Course.License
get

The course's license string.

◆ Locale

string UVACanvasAccess.Structures.Courses.Course.Locale
get

The course's locale.

◆ Name

string UVACanvasAccess.Structures.Courses.Course.Name
get

The name of the course.

If the current user has a nickname set for this course, the nickname will be reflected here. OriginalName will contain the original name.

◆ NeedsGradingCount

uint? UVACanvasAccess.Structures.Courses.Course.NeedsGradingCount
get

The amount of submissions which need to be graded.

◆ OpenEnrollment

bool? UVACanvasAccess.Structures.Courses.Course.OpenEnrollment
get

Whether the course allows open enrollment.

◆ OriginalName

string UVACanvasAccess.Structures.Courses.Course.OriginalName
get

The original name of the course, if the current user has a nickname set for this course.

◆ Permissions

Dictionary<string, bool> UVACanvasAccess.Structures.Courses.Course.Permissions
get

The set of permissions the current user has in this course.

◆ PublicDescription

string UVACanvasAccess.Structures.Courses.Course.PublicDescription
get

The public course description, if any.

◆ PublicSyllabus

bool? UVACanvasAccess.Structures.Courses.Course.PublicSyllabus
get

Whether the course has a public syllabus.

◆ PublicSyllabusToAuth

bool? UVACanvasAccess.Structures.Courses.Course.PublicSyllabusToAuth
get

Whether the course has a syllabus visible to certain authorized users.

◆ RestrictEnrollmentsToCourseDates

bool? UVACanvasAccess.Structures.Courses.Course.RestrictEnrollmentsToCourseDates
get

Whether enrollments are restricted to the dates during which a course is active.

◆ RootAccountId

ulong UVACanvasAccess.Structures.Courses.Course.RootAccountId
get

The id of the root account the course is under.

◆ SelfEnrollment

bool? UVACanvasAccess.Structures.Courses.Course.SelfEnrollment
get

Whether the course allows self enrollment.

◆ SisCourseId

string UVACanvasAccess.Structures.Courses.Course.SisCourseId
get

The SIS course id.

◆ SisImportId

ulong? UVACanvasAccess.Structures.Courses.Course.SisImportId
get

The SIS import id.

◆ StartAt

DateTime? UVACanvasAccess.Structures.Courses.Course.StartAt
get

The start date of the course.

◆ StorageQuotaMb

ulong UVACanvasAccess.Structures.Courses.Course.StorageQuotaMb
get

The course's storage quota, in MiB.

◆ StorageQuotaUsedMb

ulong UVACanvasAccess.Structures.Courses.Course.StorageQuotaUsedMb
get

How many MiB of the storage quota have been used.

◆ SyllabusBody

string UVACanvasAccess.Structures.Courses.Course.SyllabusBody
get

The content of the course syllabus.

◆ Term

Term UVACanvasAccess.Structures.Courses.Course.Term
get

The enrollment term this course is under.

◆ TimeZone

string UVACanvasAccess.Structures.Courses.Course.TimeZone
get

The course's IANA time zone.

◆ TotalStudents

ulong? UVACanvasAccess.Structures.Courses.Course.TotalStudents
get

The total amount of students in the course.

◆ Uuid

string UVACanvasAccess.Structures.Courses.Course.Uuid
get

The course UUID.

◆ WorkflowState

string UVACanvasAccess.Structures.Courses.Course.WorkflowState
get

The course's workflow state. One of: {unpublished, available, completed, deleted}


The documentation for this class was generated from the following file: