2021-12-14 16:09:31 +01:00
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Cms.Core.Telemetry.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Serializable class containing information about an installed package.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract(Name = "packageTelemetry")]
|
|
|
|
|
public class PackageTelemetry
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the installed package.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "name")]
|
2022-02-09 13:24:35 +01:00
|
|
|
public string? Name { get; set; }
|
2021-12-14 16:09:31 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the version of the installed package.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// This may be an empty string if no version is specified, or if package telemetry has been restricted.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[DataMember(Name = "version")]
|
2022-02-16 16:03:53 +01:00
|
|
|
public string? Version { get; set; }
|
2021-12-14 16:09:31 +01:00
|
|
|
}
|
|
|
|
|
}
|