/// <summary> /// Gets the property for the labeled utterance. /// </summary> /// <typeparam name="T">Property value type.</typeparam> /// <param name="instance">Labeled utterance instance.</param> /// <param name="propertyName">Property name.</param> /// <returns> /// Property value, or default if property is not set. /// </returns> public static T GetProperty <T>(this ILabeledUtterance instance, string propertyName) { return(instance.GetPropertyCore <T>(propertyName)); }
/// <summary> /// Gets the timestamp for the labeled utterance. /// </summary> /// <param name="instance">Labeled utterance instance.</param> /// <returns> /// Timestamp, or <code>null</code> if property is not set. /// </returns> public static DateTimeOffset?GetTimestamp(this ILabeledUtterance instance) { return(instance.GetPropertyCore <DateTimeOffset?>(TimestampPropertyName)); }