Interface LMSAdapter
- All Known Implementing Classes:
CanvasAdapter
public interface LMSAdapter
Contract for parsing an LMS iCalendar feed into imported course and assignment models.
-
Method Summary
Modifier and TypeMethodDescriptiongetAssignments(String feed) Parses assignment records from the given iCalendar feed content.getCourses(String feed) Parses course records from the given iCalendar feed content.Returns the LMS provider handled by this adapter.booleanDetermines whether this adapter can parse the given feed content.
-
Method Details
-
getProvider
Integration.LMSProvider getProvider()Returns the LMS provider handled by this adapter.- Returns:
- the provider enum value for this adapter
-
getCourses
Parses course records from the given iCalendar feed content.- Parameters:
feed- the raw iCalendar feed content- Returns:
- imported courses extracted from the feed
-
getAssignments
Parses assignment records from the given iCalendar feed content.- Parameters:
feed- the raw iCalendar feed content- Returns:
- imported assignments extracted from the feed
-
supports
Determines whether this adapter can parse the given feed content.- Parameters:
feed- the raw iCalendar feed content- Returns:
trueif this adapter supports the feed format
-