コード例 #1
0
ファイル: Genie.cs プロジェクト: VorobeY1326/Bkinator
 private int GetTotalAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion)
 {
     if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId))
         return answeringChoicesCount;
     return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequenciesTotal;
 }
コード例 #2
0
ファイル: Genie.cs プロジェクト: VorobeY1326/Bkinator
 private int GetAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion)
 {
     if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId))
         return 1;
     return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequencies[answeredQuestion.Choise];
 }