private static UserGamePlay Convert(IUserGamePlayEntity userGamePlay) { if (userGamePlay == null) { return(null); } return(new UserGamePlay { Key = userGamePlay.Key, Value = userGamePlay.Value, GameKey = userGamePlay.GameKey, TimeStamp = userGamePlay.TimeStamp, UserId = userGamePlay.UserId }); }
public UserGamePlay(IUserGamePlayEntity userGamePlay) { if (userGamePlay != null) { this.Key = userGamePlay.Key; this.Value = userGamePlay.Value; this.GameKey = userGamePlay.GameKey; this.TimeStamp = userGamePlay.TimeStamp; this.UserId = userGamePlay.UserId; } }
public static UserGamePlay ToUserGamePlay(IUserGamePlayEntity userGamePlayTableEntity) { return(Convert(userGamePlayTableEntity)); }