2024-10-29 13:50:35 +04:00
|
|
|
|
using StudentProgressRecord.Entity.Enums;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
|
|
|
{
|
|
|
|
|
public class StudentTransition
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public long StudentId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Operations Operation { get; set; }
|
|
|
|
|
|
2024-11-08 19:32:02 +04:00
|
|
|
|
public DateTime TimeStamp { get; set; }
|
2024-10-29 13:50:35 +04:00
|
|
|
|
|
|
|
|
|
public static StudentTransition CreateOperation(long id, long studentId, Operations operation, DateTime time)
|
|
|
|
|
{
|
|
|
|
|
return new StudentTransition
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
StudentId = studentId,
|
|
|
|
|
Operation = operation,
|
2024-11-08 19:32:02 +04:00
|
|
|
|
TimeStamp = time
|
2024-10-29 13:50:35 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|