publicclass Skill
{
publicstring UserId { get; set; }
publicstring SkillName { get; set; }
publicint Level { get; set; }
public Skill(string userId, string skillName, int level)
{
UserId = userId;
SkillName = skillName;
Level = level;
}
}
publicclass Language
{
publicstring UserId { get; set; }
publicstring Lang { get; set; }
publicint Level { get; set; }
public Language(string userId, string lang, int level)
{
UserId = userId;
Lang = lang;
Level = level;
}
}
publicstaticclass SkillDataStore
{
publicstatic List<Skill> GetSkillData()
{
returnnew List<Skill>()
{
new Skill("Jeffrey", "爆破", 5),
new Skill("Jeffrey", "嘴砲", 4),
new Skill("Jeffrey", "嘲諷", 3),
new Skill("Darkthread", "發廢文", 5),
};
}
publicstatic List<Language> GetLangData()
{
returnnew List<Language>()
{
new Language("Jeffrey", "C#", 4),
new Language("Jeffrey", "JavaScript", 3),
new Language("Darkthread", "T-SQL", 3),
new Language("Darkthread", "PL/SQL", 2)
};
}
}