Table of Contents

Struct Coupon

Namespace
Nekoyume.Model.Coupons
Assembly
Lib9c.dll
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

id Guid
rewards RewardSet

Coupon(Guid, IEnumerable<(int ItemId, uint Quantity)>)

public Coupon(Guid id, IEnumerable<(int ItemId, uint Quantity)> rewards)

Parameters

id Guid
rewards IEnumerable<(int ItemId, uint Quantity)>

Coupon(Guid, params (int ItemId, uint Quantity)[])

public Coupon(Guid id, params (int ItemId, uint Quantity)[] rewards)

Parameters

id Guid
rewards (int ItemId, uint Quantity)[]

Fields

Id

public readonly Guid Id

Field Value

Guid

Rewards

public readonly RewardSet Rewards

Field Value

RewardSet

Methods

Equals(Coupon)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Coupon other)

Parameters

other Coupon

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The 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