Beispiel #1
0
 public UserProgressEntity With(
     Guid?currentTopicId = default,
     Guid?currentLevelId = default,
     Guid?userId         = default,
     Dictionary <Guid, TopicProgressEntity> topicsProgress = default,
     TaskInfoEntity currentTask = default) =>
 new UserProgressEntity(currentTopicId ?? CurrentTopicId, currentLevelId ?? CurrentLevelId, userId ?? UserId,
                        topicsProgress ?? TopicsProgress, currentTask ?? CurrentTask, Id);
Beispiel #2
0
 public UserProgressEntity(
     Guid currentTopicId,
     Guid currentLevelId,
     Guid userId,
     Dictionary <Guid, TopicProgressEntity> topicsProgress,
     TaskInfoEntity currentTask,
     Guid id) : base(id)
 {
     CurrentTopicId = currentTopicId;
     CurrentLevelId = currentLevelId;
     UserId         = userId;
     TopicsProgress = topicsProgress;
     CurrentTask    = currentTask;
 }