Renamed project to CCharLearn

This commit is contained in:
BOT Alex 2023-07-07 19:41:56 +02:00
parent a6f55347b8
commit 591c3307a9
233 changed files with 16 additions and 17 deletions

View file

@ -0,0 +1,18 @@
namespace CCharLearn
{
/// <summary>
/// CChar stands for ChineseCharecter. Contains extra infomation about the charecter
/// </summary>
public class CChar
{
public int? frequency_rank { get; set; }
public char? charcter { get; set; }
public string? pinyin { get; set; }
public string? definition { get; set; }
public char? radical { get; set; }
public float? radical_code { get; set; }
public int? stroke_count { get; set; }
public int? hsk_levl { get; set; }
public int? general_standard_num { get; set; }
}
}

View file

@ -0,0 +1,28 @@
namespace CCharLearn
{
public class CCharStats
{
public CChar cchar { get; set; }
public int NumOfCorrects { get; set; } = 0;
public int NumOfWrongs { get; set; } = 0;
public int TotalAnswers { get => NumOfCorrects + NumOfWrongs; }
public float Accuracy
{
get
{
return (float)NumOfCorrects / (float)TotalAnswers;
}
}
public CCharStats(CChar cchar)
{
this.cchar = cchar;
}
}
public enum StatType
{
NumOfCorrects,
NumOfWrongs
}
}