Skip to content

Commit 729fb9a

Browse files
committed
Added the PersonType enum.
1 parent 1eb633d commit 729fb9a

File tree

14 files changed

+15
-1
lines changed

14 files changed

+15
-1
lines changed

bin/MataSharp.dll

0 Bytes
Binary file not shown.

src/MataSharp/MagisterPerson.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public partial class MagisterPerson : IComparable<MagisterPerson>, ICloneable, I
1818
public string Description { get; set; }
1919
public string Group { get; set; }
2020
public string TeacherCode { get; set; }
21-
public int GroupID { get; internal set; }
21+
internal int GroupID;
22+
public PersonType Type { get { return (PersonType)this.GroupID; } }
2223

2324
internal MagisterPerson Original { get; set; }
2425

@@ -91,6 +92,14 @@ public int GetHashCode(MagisterPerson obj)
9192
}
9293
}
9394

95+
public enum PersonType : int
96+
{
97+
Pupil = 4,
98+
Teacher = 3,
99+
Group = 1,
100+
Project = 8
101+
}
102+
94103
internal partial struct MagisterStylePerson
95104
{
96105
public uint Id { get; set; }

src/MataSharp/MessageList.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ private Enumerator<Message> GetSpecificEnumerator()
3838
return new Enumerator<Message>(this.Sender.Mata, this.Sender);
3939
}
4040

41+
public Message ElementAt(int index)
42+
{
43+
return this[index];
44+
}
45+
4146
public List<Message> Take(int count)
4247
{
4348
return this.GetRange(0, count);
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)