Skip to content

Commit

Permalink
Return a BeamQrFragment for the BeamClaim qr field so it can include …
Browse files Browse the repository at this point in the history
…the qr sub-fields.
  • Loading branch information
v16Studios committed Dec 29, 2023
1 parent 5b786db commit 9c5ddd1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ public BeamClaimFragment WithCode(bool isIncluded = true)
/// <summary>
/// Sets whether the <see cref="BeamClaim"/> is to be returned with its <see cref="BeamClaim.Qr"/> property.
/// </summary>
/// <param name="isIncluded">Whether the field is included.</param>
/// <param name="fragment">The <see cref="BeamQrFragment"/> fragment.</param>
/// <returns>This fragment for chaining.</returns>
public BeamClaimFragment WithQr(bool isIncluded = true)
public BeamClaimFragment WithQr(BeamQrFragment? fragment)
{
return WithField("qr", isIncluded);
return WithField("qr", fragment);
}
}

0 comments on commit 9c5ddd1

Please sign in to comment.