Files
edmand46 d4bbafb314
CI / check (push) Successful in 53s
CI / publish (push) Has been skipped
quests: QuestMetrics helpers, README quests section
2026-08-25 16:25:34 +03:00

17 lines
696 B
C#

namespace RudderSdk.Core;
/// <summary>
/// Builders for the quest metric strings known to the platform. Purchase
/// metrics are reported automatically by the shop purchase fan-out; any other
/// metric is a custom string reported via
/// <see cref="QuestsService.ReportProgressAsync"/>.
/// </summary>
public static class QuestMetrics
{
/// <summary>Metric for purchasing a store offer; auto-reported on purchase.</summary>
public static string PurchaseOffer(string offerId) => $"purchase.offer:{offerId}";
/// <summary>Metric for purchasing a catalog item; auto-reported on purchase.</summary>
public static string PurchaseItem(string itemId) => $"purchase.item:{itemId}";
}