Esempio n. 1
0
        public Stake(long value, StakeType type)
        {
            Guard.Argument(value, nameof(value)).InRange(1, 1000000000000000000);

            Value = value;
            Type  = type;
        }
Esempio n. 2
0
 public Stake(long value, StakeType type)
 {
     _value = value;
     _type  = type;
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the <see cref="IStake" />
 /// </summary>
 /// <param name="value">The quantity multiplied by 10000 and rounded to a long value</param>
 /// <param name="stakeType">Type of the stake</param>
 /// <returns>Returns a <see cref="IBetBuilder" /></returns>
 public IBetBuilder SetEntireStake(long value, StakeType stakeType)
 {
     _entireStake = new Stake(value, stakeType);
     return(this);
 }
Esempio n. 4
0
 /// <summary>
 /// Sets the <see cref="IStake" />
 /// </summary>
 /// <param name="value">The quantity multiplied by 10000 and rounded to a long value</param>
 /// <param name="stakeType">Type of the stake</param>
 /// <returns>Returns a <see cref="IBetBuilder" /></returns>
 public IBetBuilder SetStake(long value, StakeType stakeType)
 {
     _stake = new Stake(value, stakeType);
     ValidateData(false, false, true);
     return(this);
 }