Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 7544f43

Browse files
committed
Update BlockList.cs
1 parent c874763 commit 7544f43

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Model/BlockList.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,34 @@
44

55
namespace Model
66
{
7+
/*This class contains the list of all blocked students for the current user*/
78
public class BlockList
89
{
910

10-
private List<Student> BlockedStudents { get; set; }
11+
public List<Student> BlockedStudents { get; set; }
1112
private Student Student;
12-
1313
public BlockList(Student student)
1414
{
1515
Student = student;
1616
BlockedStudents = new List<Student>();
1717
//update list according to database
1818
}
1919

20+
/*Adds arg student to blocked list*/
2021
public void AddBlock(Student student)
2122
{
2223
BlockedStudents.Add(student);
2324
//database update
2425
}
2526

27+
/*removes arg student from blocked list*/
2628
public void RemoveBlock(Student student)
2729
{
2830
BlockedStudents.Remove(student);
2931
//database update
3032
}
3133

34+
/*returns if arg student is in the blocked list*/
3235
public bool IsBlocked(Student student)
3336
{
3437
return BlockedStudents.Contains(student);

0 commit comments

Comments
 (0)