public GameRound(IDataReader idr) : this() { GameRoundID = idr.GetValueByName<Int32>("GameRoundID"); Started = idr.GetValueByName<DateTime>("Started"); GameID = idr.GetValueByName<Int32>("Game_GameID"); CurrentPlayerCount = idr.GetValueByName<Int32>("CurrentPlayers"); PlayedCount = idr.GetValueByName<Int32>("Played"); CardCommander = new User(idr); Question = new Card(idr); }
public GameRoundCard(IDataReader idr) { Card_CardID = idr.GetValueByName<Int32>("CardID"); DatePlayed = idr.GetValueByName<DateTime>("DatePlayed"); Game_GameID = idr.GetValueByName<Int32>("Game_GameID"); GameRound_GameRoundID = idr.GetValueByName<Int32>("GameRound_GameRoundID"); GameRoundCardID = idr.GetValueByName<Int32>("GameRoundCardID"); PlayedBy_UserId = idr.GetValueByName<Int32>("PlayedBy_UserId"); PlayOrder = idr.GetValueByName<Int16>("PlayOrder"); Winner = idr.GetValueByName<Boolean>("Winner"); AutoPlayed = idr.GetValueByName<Boolean>("AutoPlayed"); PlayedBy = new User(idr); Card = new Card(idr); }
public GamePlayer(IDataReader idr) : this() { GameID = idr.GetValueByName<Int32>("GameID"); User = new User(idr); Points = idr.GetValueByName<Int32>("Points"); CardCount = idr.GetValueByName<Int32>("CardCount"); IdlePlayCount = idr.GetValueByName<Int32>("IdlePlayCount"); if (idr.HasColumn("Title")) { Game = new Game(idr); } PlayerType = (Enums.GamePlayerType)idr.GetValueByName<Int32>("Type"); }
public LeaderboardRecord(IDataReader idr) { User = new User(idr); Points = idr.GetValueByName<Int32>("Points"); Rank = idr.GetValueByName<Int32>("Rank"); }
public LeaderboardRecord() { User = new User(); }
public GameRoundCard() { PlayOrder = 1; Winner = false; PlayedBy = new User(); }
public GamePlayer() { User = new User(); Hand = new List<GamePlayerCard>(); PlayerType = Enums.GamePlayerType.Player; }
public GameRound() { CardCommander = new User(); CardsPlayed = new List<GameRoundCard>(); }