Struct Coupon
public readonly struct Coupon : IOrderedEnumerable<(int ItemId, uint Quantity)>, IEnumerable<(int ItemId, uint Quantity)>, IEnumerable, IEquatable<Coupon>
- Implements
- Inherited Members
Constructors
Coupon(IValue)
public Coupon(IValue serialized)
Parameters
serialized
IValue
Coupon(Guid, in RewardSet)
public Coupon(Guid id, in RewardSet rewards)
Parameters
Coupon(Guid, IEnumerable<(int ItemId, uint Quantity)>)
public Coupon(Guid id, IEnumerable<(int ItemId, uint Quantity)> rewards)
Parameters
Coupon(Guid, params (int ItemId, uint Quantity)[])
public Coupon(Guid id, params (int ItemId, uint Quantity)[] rewards)
Parameters
Fields
Id
public readonly Guid Id
Field Value
Rewards
public readonly RewardSet Rewards
Field Value
Methods
Equals(Coupon)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Coupon other)
Parameters
other
CouponAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Serialize()
public IValue Serialize()
Returns
- IValue