lib_unity_purchase/Runtime/Purchasing/Telemetry/Metrics/TelemetryMetricDefinition.cs

21 lines
583 B
C#
Raw Normal View History

2024-01-29 18:49:33 +08:00
namespace UnityEngine.Purchasing.Telemetry
{
struct TelemetryMetricDefinition
{
public TelemetryMetricTypes MetricType { get; }
public string MetricName { get; }
public TelemetryMetricDefinition(string metricName,
TelemetryMetricTypes metricType = TelemetryMetricTypes.Histogram)
{
MetricName = metricName;
MetricType = metricType;
}
public static implicit operator TelemetryMetricDefinition(string name)
{
return new TelemetryMetricDefinition(name);
}
}
}