CSALDatabase.FindTurns Method

CSAL Mongo

CSALDatabase FindTurns Method CSAL Mongo Access Library
Return all turns matching the given lesson and student. Note that a null or empty string result in no filter.

Namespace: CSALMongo
Assembly: CSALMongo (in CSALMongo.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

public List<StudentLessonActs> FindTurns(
	string lessonID,
	string userID
)
public List<StudentLessonActs> FindTurns(
	string lessonID,
	string userID
)
Public Function FindTurns ( 
	lessonID As String,
	userID As String
) As List(Of StudentLessonActs)
Public Function FindTurns ( 
	lessonID As String,
	userID As String
) As List(Of StudentLessonActs)
public:
List<StudentLessonActs^>^ FindTurns(
	String^ lessonID, 
	String^ userID
)
public:
List<StudentLessonActs^>^ FindTurns(
	String^ lessonID, 
	String^ userID
)

Parameters

lessonID
Type: OnlineSystem String
Lesson to match. Null or empty string matches nothing (so all lessons)
userID
Type: OnlineSystem String
Student to match. Null or empty string matches nothing (so all students)

Return Value

Type: OnlineList StudentLessonActs 
An unordered list of ConvLog instances representing the turns found
Examples

var db = new CSALDatabase("mongodb://localhost:27017/testdb"); db.findTurns(null, null); //Returns ALL turns db.findTurns(null, "Alice"); //Returns turns for student Alice (across all lessons) db.findTurns("CheckbookBalancing", null); //Returns ALL turns for lesson CheckbookBalance (all students) db.findTurns("CheckbookBalancing", "Bob"); //Returns ALL turns for student Bob in lesson CheckbookBalance
See Also