2026-08-25 16:25:34 +03:00
|
|
|
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>
|
2026-09-06 22:25:32 +03:00
|
|
|
public static string PurchaseOffer(string offerSlug) => $"purchase.offer:{offerSlug}";
|
2026-08-25 16:25:34 +03:00
|
|
|
|
|
|
|
|
/// <summary>Metric for purchasing a catalog item; auto-reported on purchase.</summary>
|
|
|
|
|
public static string PurchaseItem(string itemId) => $"purchase.item:{itemId}";
|
|
|
|
|
}
|