public static TicketOddsChange Convert(OddsChangeType type) { switch (type) { case OddsChangeType.Higher: return(TicketOddsChange.Higher); case OddsChangeType.Any: return(TicketOddsChange.Any); case OddsChangeType.None: return(TicketOddsChange.None); } throw new InvalidEnumArgumentException($"Invalid OddsChangeType value: {type}."); }
/// <summary> /// Sets the odds change /// </summary> /// <param name="type">The <see cref="OddsChangeType" /> to be set</param> /// <returns>Returns a <see cref="ITicketBuilder" /></returns> public ITicketBuilder SetOddsChange(OddsChangeType type) { _oddsChangeType = type; return(this); }