Table of Contents

Method BoostListingAsync

Namespace
UsluzionicaServer.Services
Assembly
UsluzionicaServer.dll

BoostListingAsync(int, string, BoostListingDto)

Provider boostuje listing trošeći tokene.

Efekti:

  • user.TokenBalance -= tokensToSpend
  • TokenTransaction (Kind=BoostSpend, Amount=-tokens)
  • ListingBoost INSERT
  • listing.BoostScore += tokensToSpend / durationDays
  • listing.IsBoosted = true
  • listing.BoostExpiresAt = max(current, newExpiry)
public Task<(bool, string?)> BoostListingAsync(int listingId, string userId, BoostListingDto dto)

Parameters

listingId int
userId string
dto BoostListingDto

Returns

Task<(bool Success, string Error)>