コード例 #1
0
ファイル: UserProgressEntity.cs プロジェクト: 742PM/Quiz
 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);
コード例 #2
0
ファイル: UserProgressEntity.cs プロジェクト: 742PM/Quiz
 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;
 }