public JoinOffer(GameOffer game_offer, string joiner, Window window) : base(game_offer.Creator, game_offer.GameType, game_offer.MatchTo, game_offer.Stake, game_offer.Limit, DateTime.UtcNow) { this.joiner = joiner; this.window = window; }
/// <summary> /// Creates a deep-copy from existing offer and updates it's time stamp. /// </summary> /// <param name="offer"></param> /// <returns></returns> public static GameOffer FromOffer(GameOffer offer) { return new GameOffer(offer.creator, offer.game_type, offer.match_to, offer.stake, offer.limit); }
/// <summary> /// Creates a deep-copy from existing offer and updates it's time stamp. /// </summary> /// <param name="offer"></param> /// <returns></returns> public static GameOffer FromOffer(GameOffer offer) { return(new GameOffer(offer.creator, offer.game_type, offer.match_to, offer.stake, offer.limit)); }
public void Add(GameOffer offer) { this.offers.Add(offer); }