UNPKG

@team-llambda/edupoint-pxpwebservices-synergy

Version:

An NPM package for accessing the Edupoint Synergy API on behalf of students, parents, and teachers.

25 lines (23 loc) 740 B
module EDUPoint { export class ReportingPeriod { static schema = { name: "ReportingPeriod", properties: { index: "number", gradePeriod: "string", startDate: "date", endDate: "date" } } index: number gradePeriod: string startDate: Date endDate: Date constructor(data: any) { this.index = +data.attributes["Index"] this.gradePeriod = data.attributes["GradePeriod"] this.startDate = dateFromAmericanShortFormat(data.attributes["StartDate"]) this.endDate = dateFromAmericanShortFormat(data.attributes["EndDate"]) } } }