public ProfileViewModel(Profile Profile) : base(Profile.Id) { this.DefaultColor = Profile.DefaultColor; this.PlayersViewModel = new Collection<PlayerViewModel>(); foreach(var player in Profile.PlayerAccounts) { this.PlayersViewModel.Add(new PlayerViewModel(player)); } }
public Player(Profile Profile) : base() { this.Color = Profile.DefaultColor; this.Score = 0; }