UNPKG

api-core

Version:

Model-based dynamic multi-level APIs for any provider, plus multiple consumption channels

27 lines (22 loc) 645 B
import {Model} from "../edges/ModelEdge"; export interface StudentCourseConnectionScheme { id: string; courseId: string; studentId: string; } export class StudentCourseConnection extends Model implements StudentCourseConnectionScheme{ constructor(obj: StudentCourseConnectionScheme) { super(obj); this.courseId = obj.courseId; this.studentId = obj.studentId; } static create( id: string, courseId: string, studentId: string) { return new StudentCourseConnection({ id, courseId, studentId }); } id: string; courseId: string; studentId: string; }