Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Create/Update/Delete Scheduling Master Schedule (SMS) #43

Merged
merged 10 commits into from Mar 1, 2022
4 changes: 3 additions & 1 deletion AeriesApi/AeriesApi.psd1
Expand Up @@ -57,7 +57,9 @@ PowerShellVersion = '5.1'
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
ScriptsToProcess = @(
'Classes\SectionStaffMember.ps1'
)

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
Expand Down
52 changes: 52 additions & 0 deletions AeriesApi/Classes/SectionStaffMember.ps1
@@ -0,0 +1,52 @@
class SectionStaffMember {
[ValidateRange(1, [int]::MaxValue)]
[int]
$StaffID

[ValidateLength(1, 1)]
[bool]
$IsPrimaryTeacher

[ValidateLength(1, 3)]
[string]
$StaffRoleCode

[ValidateLength(1, 3)]
[string]
$TeacherPositionCode

[ValidateSet("Y","N")]
[string]
$AttendancePermission = "N"

[ValidateSet("Y","N")]
[string]
$GradebookPermissionCode = "N"

[ValidateSet("Y","N")]
[string]
$GradeReportingAccess = "N"

[ValidateSet("Y","N")]
[string]
$StudentAccess = "N"

[ValidateSet("Y","N")]
[string]
$IncludeInStateReporting = "N"

[System.Nullable[datetime]]
$StartDate = $null

[System.Nullable[datetime]]
$EndDate = $null

[ValidateLength(1, 1)]
[string]
$InactiveStatusCode

SectionStaffMember([int]$StaffID) {
<# With a constructor defined, this means it can't be made blank. We want to require at least Staff ID #>
$this.StaffID = $StaffID
}
}