diff options
Diffstat (limited to 'win/CS')
13 files changed, 289 insertions, 140 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs index cddfd3634..67f1c5483 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs @@ -486,7 +486,7 @@ namespace HandBrake.ApplicationServices.Interop HBFunctions.hb_audio_bitrate_get_limits((uint)encoder.Id, sampleRate, mixdown.Id, ref low, ref high);
- return new BitrateLimits { Low = low, High = high };
+ return new BitrateLimits(low, high);
}
/// <summary>
@@ -507,13 +507,7 @@ namespace HandBrake.ApplicationServices.Interop HBFunctions.hb_video_quality_get_limits((uint)encoder.Id, ref low, ref high, ref granularity, ref direction);
- return new VideoQualityLimits
- {
- Low = low,
- High = high,
- Granularity = granularity,
- Ascending = direction == 0
- };
+ return new VideoQualityLimits(low, high, granularity, direction == 0);
}
/// <summary>
@@ -574,13 +568,7 @@ namespace HandBrake.ApplicationServices.Interop int direction = 0;
HBFunctions.hb_audio_quality_get_limits((uint)encoderId, ref low, ref high, ref granularity, ref direction);
- return new RangeLimits
- {
- Low = low,
- High = high,
- Granularity = granularity,
- Ascending = direction == 0
- };
+ return new RangeLimits(direction == 0, granularity, high, low);
}
/// <summary>
@@ -598,13 +586,7 @@ namespace HandBrake.ApplicationServices.Interop int direction = 0;
HBFunctions.hb_audio_compression_get_limits((uint)encoderId, ref low, ref high, ref granularity, ref direction);
- return new RangeLimits
- {
- Low = low,
- High = high,
- Granularity = granularity,
- Ascending = direction == 0
- };
+ return new RangeLimits(direction == 0, granularity, high, low);
}
/// <summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUnitConversionHelpers.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUnitConversionHelpers.cs index 7b981b7af..2f01e1825 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUnitConversionHelpers.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUnitConversionHelpers.cs @@ -75,13 +75,7 @@ namespace HandBrake.ApplicationServices.Interop /// </returns>
internal static HBVideoEncoder NativeToVideoEncoder(hb_encoder_s encoder)
{
- return new HBVideoEncoder
- {
- Id = encoder.codec,
- ShortName = encoder.short_name,
- DisplayName = encoder.name,
- CompatibleContainers = encoder.muxers
- };
+ return new HBVideoEncoder(encoder.muxers, encoder.name, encoder.codec, encoder.short_name);
}
/// <summary>
@@ -95,18 +89,16 @@ namespace HandBrake.ApplicationServices.Interop /// </returns>
internal static HBAudioEncoder NativeToAudioEncoder(hb_encoder_s encoder)
{
- var result = new HBAudioEncoder
- {
- Id = encoder.codec,
- ShortName = encoder.short_name,
- DisplayName = encoder.name,
- CompatibleContainers = encoder.muxers,
- QualityLimits = HandBrakeEncoderHelpers.GetAudioQualityLimits(encoder.codec),
- DefaultQuality = HBFunctions.hb_audio_quality_get_default((uint)encoder.codec),
- CompressionLimits = HandBrakeEncoderHelpers.GetAudioCompressionLimits(encoder.codec),
- DefaultCompression =
- HBFunctions.hb_audio_compression_get_default((uint)encoder.codec)
- };
+ var result = new HBAudioEncoder(
+ encoder.muxers,
+ HandBrakeEncoderHelpers.GetAudioCompressionLimits(encoder.codec),
+ HBFunctions.hb_audio_compression_get_default((uint)encoder.codec),
+ HBFunctions.hb_audio_quality_get_default((uint)encoder.codec),
+ encoder.name,
+ encoder.codec,
+ HandBrakeEncoderHelpers.GetAudioQualityLimits(encoder.codec),
+ encoder.short_name
+ );
return result;
}
@@ -122,11 +114,7 @@ namespace HandBrake.ApplicationServices.Interop /// </returns>
internal static HBRate NativeToRate(hb_rate_s rate)
{
- return new HBRate
- {
- Name = rate.name,
- Rate = rate.rate
- };
+ return new HBRate(rate.name, rate.rate);
}
/// <summary>
@@ -140,12 +128,7 @@ namespace HandBrake.ApplicationServices.Interop /// </returns>
internal static HBMixdown NativeToMixdown(hb_mixdown_s mixdown)
{
- return new HBMixdown
- {
- Id = mixdown.amixdown,
- ShortName = mixdown.short_name,
- DisplayName = mixdown.name
- };
+ return new HBMixdown(mixdown.name, mixdown.amixdown, mixdown.short_name);
}
/// <summary>
@@ -159,13 +142,7 @@ namespace HandBrake.ApplicationServices.Interop /// </returns>
internal static HBContainer NativeToContainer(hb_container_s container)
{
- return new HBContainer
- {
- DisplayName = container.name,
- ShortName = container.short_name,
- DefaultExtension = container.default_extension,
- Id = container.format
- };
+ return new HBContainer(container.default_extension, container.name, container.format, container.short_name);
}
/// <summary>
@@ -181,12 +158,7 @@ namespace HandBrake.ApplicationServices.Interop {
string englishName = InteropUtilities.ToStringFromUtf8Ptr(language.eng_name);
string nativeName = InteropUtilities.ToStringFromUtf8Ptr(language.native_name);
- return new Language
- {
- Code = language.iso639_2,
- EnglishName = englishName,
- NativeName = nativeName
- };
+ return new Language(englishName, nativeName, language.iso639_2);
}
/// <summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/BitrateLimits.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/BitrateLimits.cs index 62ff64200..533c73a5b 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/BitrateLimits.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/BitrateLimits.cs @@ -15,13 +15,28 @@ namespace HandBrake.ApplicationServices.Interop.Model public class BitrateLimits
{
/// <summary>
- /// Gets or sets the inclusive lower limit for the bitrate.
+ /// Initializes a new instance of the <see cref="BitrateLimits"/> class.
/// </summary>
- public int Low { get; set; }
+ /// <param name="low">
+ /// The low.
+ /// </param>
+ /// <param name="high">
+ /// The high.
+ /// </param>
+ public BitrateLimits(int low, int high)
+ {
+ this.Low = low;
+ this.High = high;
+ }
/// <summary>
- /// Gets or sets the inclusive upper limit for the bitrate.
+ /// Gets the inclusive lower limit for the bitrate.
/// </summary>
- public int High { get; set; }
+ public int Low { get; private set; }
+
+ /// <summary>
+ /// Gets the inclusive upper limit for the bitrate.
+ /// </summary>
+ public int High { get; private set; }
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBAudioEncoder.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBAudioEncoder.cs index 5bef508f8..2d2e5b26d 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBAudioEncoder.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBAudioEncoder.cs @@ -17,34 +17,73 @@ namespace HandBrake.ApplicationServices.Interop.Model.Encoding public class HBAudioEncoder
{
/// <summary>
- /// Gets or sets the compatible containers.
+ /// Initializes a new instance of the <see cref="HBAudioEncoder"/> class.
/// </summary>
- public int CompatibleContainers { get; set; }
+ /// <param name="compatibleContainers">
+ /// The compatible containers.
+ /// </param>
+ /// <param name="compressionLimits">
+ /// The compression limits.
+ /// </param>
+ /// <param name="defaultCompression">
+ /// The default compression.
+ /// </param>
+ /// <param name="defaultQuality">
+ /// The default quality.
+ /// </param>
+ /// <param name="displayName">
+ /// The display name.
+ /// </param>
+ /// <param name="id">
+ /// The id.
+ /// </param>
+ /// <param name="qualityLimits">
+ /// The quality limits.
+ /// </param>
+ /// <param name="shortName">
+ /// The short name.
+ /// </param>
+ public HBAudioEncoder(int compatibleContainers, RangeLimits compressionLimits, float defaultCompression, float defaultQuality, string displayName, int id, RangeLimits qualityLimits, string shortName)
+ {
+ this.CompatibleContainers = compatibleContainers;
+ this.CompressionLimits = compressionLimits;
+ this.DefaultCompression = defaultCompression;
+ this.DefaultQuality = defaultQuality;
+ this.DisplayName = displayName;
+ this.Id = id;
+ this.QualityLimits = qualityLimits;
+ this.ShortName = shortName;
+ }
+
+ /// <summary>
+ /// Gets the compatible containers.
+ /// </summary>
+ public int CompatibleContainers { get; private set; }
/// <summary>
- /// Gets or sets the compression limits.
+ /// Gets the compression limits.
/// </summary>
- public RangeLimits CompressionLimits { get; set; }
+ public RangeLimits CompressionLimits { get; private set; }
/// <summary>
- /// Gets or sets the default compression.
+ /// Gets the default compression.
/// </summary>
- public float DefaultCompression { get; set; }
+ public float DefaultCompression { get; private set; }
/// <summary>
- /// Gets or sets the default quality.
+ /// Gets the default quality.
/// </summary>
- public float DefaultQuality { get; set; }
+ public float DefaultQuality { get; private set; }
/// <summary>
- /// Gets or sets the display name.
+ /// Gets the display name.
/// </summary>
- public string DisplayName { get; set; }
+ public string DisplayName { get; private set; }
/// <summary>
- /// Gets or sets the id.
+ /// Gets the id.
/// </summary>
- public int Id { get; set; }
+ public int Id { get; private set; }
/// <summary>
/// Gets a value indicating whether the encoder is passthrough.
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBContainer.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBContainer.cs index 2a91c4e70..832d3513d 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBContainer.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBContainer.cs @@ -15,23 +15,46 @@ namespace HandBrake.ApplicationServices.Interop.Model.Encoding public class HBContainer
{
/// <summary>
- /// Gets or sets the default extension.
+ /// Initializes a new instance of the <see cref="HBContainer"/> class.
/// </summary>
- public string DefaultExtension { get; set; }
+ /// <param name="defaultExtension">
+ /// The default extension.
+ /// </param>
+ /// <param name="displayName">
+ /// The display name.
+ /// </param>
+ /// <param name="id">
+ /// The id.
+ /// </param>
+ /// <param name="shortName">
+ /// The short name.
+ /// </param>
+ public HBContainer(string defaultExtension, string displayName, int id, string shortName)
+ {
+ this.DefaultExtension = defaultExtension;
+ this.DisplayName = displayName;
+ this.Id = id;
+ this.ShortName = shortName;
+ }
/// <summary>
- /// Gets or sets the display name.
+ /// Gets the default extension.
/// </summary>
- public string DisplayName { get; set; }
+ public string DefaultExtension { get; private set; }
/// <summary>
- /// Gets or sets the id.
+ /// Gets the display name.
/// </summary>
- public int Id { get; set; }
+ public string DisplayName { get; private set; }
/// <summary>
- /// Gets or sets the short name.
+ /// Gets the id.
/// </summary>
- public string ShortName { get; set; }
+ public int Id { get; private set; }
+
+ /// <summary>
+ /// Gets the short name.
+ /// </summary>
+ public string ShortName { get; private set; }
}
}
\ No newline at end of file diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBMixdown.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBMixdown.cs index 18e7288e7..04927b9dd 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBMixdown.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBMixdown.cs @@ -14,23 +14,38 @@ namespace HandBrake.ApplicationServices.Interop.Model.Encoding /// </summary>
public class HBMixdown
{
- #region Public Properties
-
/// <summary>
- /// Gets or sets the display name.
+ /// Initializes a new instance of the <see cref="HBMixdown"/> class.
/// </summary>
- public string DisplayName { get; set; }
+ /// <param name="displayName">
+ /// The display name.
+ /// </param>
+ /// <param name="id">
+ /// The id.
+ /// </param>
+ /// <param name="shortName">
+ /// The short name.
+ /// </param>
+ public HBMixdown(string displayName, int id, string shortName)
+ {
+ this.DisplayName = displayName;
+ this.Id = id;
+ this.ShortName = shortName;
+ }
/// <summary>
- /// Gets or sets the id.
+ /// Gets the display name.
/// </summary>
- public int Id { get; set; }
+ public string DisplayName { get; private set; }
/// <summary>
- /// Gets or sets the short name.
+ /// Gets the id.
/// </summary>
- public string ShortName { get; set; }
+ public int Id { get; private set; }
- #endregion
+ /// <summary>
+ /// Gets the short name.
+ /// </summary>
+ public string ShortName { get; private set; }
}
}
\ No newline at end of file diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBRate.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBRate.cs index e3315878d..d3287cddb 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBRate.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBRate.cs @@ -15,13 +15,28 @@ namespace HandBrake.ApplicationServices.Interop.Model.Encoding public class HBRate
{
/// <summary>
- /// Gets or sets the name to use for this rate.
+ /// Initializes a new instance of the <see cref="HBRate"/> class.
/// </summary>
- public string Name { get; set; }
+ /// <param name="name">
+ /// The name.
+ /// </param>
+ /// <param name="rate">
+ /// The rate.
+ /// </param>
+ public HBRate(string name, int rate)
+ {
+ this.Name = name;
+ this.Rate = rate;
+ }
/// <summary>
- /// Gets or sets the raw rate.
+ /// Gets the name to use for this rate.
/// </summary>
- public int Rate { get; set; }
+ public string Name { get; private set; }
+
+ /// <summary>
+ /// Gets the raw rate.
+ /// </summary>
+ public int Rate { get; private set; }
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBVideoEncoder.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBVideoEncoder.cs index a764f76b3..a1e60b2de 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBVideoEncoder.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Encoding/HBVideoEncoder.cs @@ -20,24 +20,47 @@ namespace HandBrake.ApplicationServices.Interop.Model.Encoding public class HBVideoEncoder
{
/// <summary>
- /// Gets or sets the compatible containers.
+ /// Initializes a new instance of the <see cref="HBVideoEncoder"/> class.
/// </summary>
- public int CompatibleContainers { get; set; }
+ /// <param name="compatibleContainers">
+ /// The compatible containers.
+ /// </param>
+ /// <param name="displayName">
+ /// The display name.
+ /// </param>
+ /// <param name="id">
+ /// The id.
+ /// </param>
+ /// <param name="shortName">
+ /// The short name.
+ /// </param>
+ public HBVideoEncoder(int compatibleContainers, string displayName, int id, string shortName)
+ {
+ this.CompatibleContainers = compatibleContainers;
+ this.DisplayName = displayName;
+ this.Id = id;
+ this.ShortName = shortName;
+ }
+
+ /// <summary>
+ /// Gets the compatible containers.
+ /// </summary>
+ public int CompatibleContainers { get; private set; }
/// <summary>
- /// Gets or sets the display name.
+ /// Gets the display name.
/// </summary>
- public string DisplayName { get; set; }
+ public string DisplayName { get; private set; }
/// <summary>
- /// Gets or sets the id.
+ /// Gets the id.
/// </summary>
- public int Id { get; set; }
+ public int Id { get; private set; }
/// <summary>
- /// Gets or sets the short name.
+ /// Gets the short name.
/// </summary>
- public string ShortName { get; set; }
+ public string ShortName { get; private set; }
/// <summary>
/// Gets the list of presets this encoder supports. (null if the encoder doesn't support presets)
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Language.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Language.cs index 89e997ef8..a110f2590 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Language.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Language.cs @@ -15,19 +15,38 @@ namespace HandBrake.ApplicationServices.Interop.Model public class Language
{
/// <summary>
- /// Gets or sets the english name of the language.
+ /// Initializes a new instance of the <see cref="Language"/> class.
/// </summary>
- public string EnglishName { get; set; }
+ /// <param name="englishName">
+ /// The english name.
+ /// </param>
+ /// <param name="nativeName">
+ /// The native name.
+ /// </param>
+ /// <param name="code">
+ /// The code.
+ /// </param>
+ public Language(string englishName, string nativeName, string code)
+ {
+ this.EnglishName = englishName;
+ this.NativeName = nativeName;
+ this.Code = code;
+ }
+
+ /// <summary>
+ /// Gets the english name of the language.
+ /// </summary>
+ public string EnglishName { get; private set; }
/// <summary>
- /// Gets or sets the native name of the language.
+ /// Gets the native name of the language.
/// </summary>
- public string NativeName { get; set; }
+ public string NativeName { get; private set; }
/// <summary>
- /// Gets or sets the language code.
+ /// Gets the language code.
/// </summary>
- public string Code { get; set; }
+ public string Code { get; private set; }
/// <summary>
/// Gets the display string for the language.
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/RangeLimits.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/RangeLimits.cs index e10e16a71..b25c610dd 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/RangeLimits.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/RangeLimits.cs @@ -15,23 +15,46 @@ namespace HandBrake.ApplicationServices.Interop.Model public class RangeLimits
{
/// <summary>
- /// Gets or sets a value indicating whether ascending.
+ /// Initializes a new instance of the <see cref="RangeLimits"/> class.
/// </summary>
- public bool Ascending { get; set; }
+ /// <param name="ascending">
+ /// The ascending.
+ /// </param>
+ /// <param name="granularity">
+ /// The granularity.
+ /// </param>
+ /// <param name="high">
+ /// The high.
+ /// </param>
+ /// <param name="low">
+ /// The low.
+ /// </param>
+ public RangeLimits(bool @ascending, float granularity, float high, float low)
+ {
+ this.Ascending = @ascending;
+ this.Granularity = granularity;
+ this.High = high;
+ this.Low = low;
+ }
/// <summary>
- /// Gets or sets the granularity.
+ /// Gets a value indicating whether ascending.
/// </summary>
- public float Granularity { get; set; }
+ public bool Ascending { get; private set; }
/// <summary>
- /// Gets or sets the high.
+ /// Gets the granularity.
/// </summary>
- public float High { get; set; }
+ public float Granularity { get; private set; }
/// <summary>
- /// Gets or sets the low.
+ /// Gets the high.
/// </summary>
- public float Low { get; set; }
+ public float High { get; private set; }
+
+ /// <summary>
+ /// Gets the low.
+ /// </summary>
+ public float Low { get; private set; }
}
}
\ No newline at end of file diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Size.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Size.cs index e6752042c..4a4e09d34 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Size.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Size.cs @@ -30,14 +30,14 @@ namespace HandBrake.ApplicationServices.Interop.Model }
/// <summary>
- /// Gets or sets the height.
+ /// Gets the height.
/// </summary>
- public int Height { get; set; }
+ public int Height { get; private set; }
/// <summary>
- /// Gets or sets the width.
+ /// Gets the width.
/// </summary>
- public int Width { get; set; }
+ public int Width { get; private set; }
/// <summary>
/// Gets a value indicating whether is empty.
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/SourceVideoInfo.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/SourceVideoInfo.cs index 31b94ae10..4a0ffd2ec 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/SourceVideoInfo.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/SourceVideoInfo.cs @@ -30,13 +30,13 @@ namespace HandBrake.ApplicationServices.Interop.Model }
/// <summary>
- /// Gets or sets the resolution (width/height) of this Title
+ /// Gets the resolution (width/height) of this Title
/// </summary>
- public Size Resolution { get; set; }
+ public Size Resolution { get; private set; }
/// <summary>
- /// Gets or sets the pixel aspect ratio.
+ /// Gets the pixel aspect ratio.
/// </summary>
- public Size ParVal { get; set; }
+ public Size ParVal { get; private set; }
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/VideoQualityLimits.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/VideoQualityLimits.cs index bd9c1f5d4..19a0755af 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Model/VideoQualityLimits.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/VideoQualityLimits.cs @@ -15,23 +15,46 @@ namespace HandBrake.ApplicationServices.Interop.Model public class VideoQualityLimits
{
/// <summary>
- /// Gets or sets the inclusive lower limit for the quality.
+ /// Initializes a new instance of the <see cref="VideoQualityLimits"/> class.
/// </summary>
- public float Low { get; set; }
+ /// <param name="low">
+ /// The low.
+ /// </param>
+ /// <param name="high">
+ /// The high.
+ /// </param>
+ /// <param name="granularity">
+ /// The granularity.
+ /// </param>
+ /// <param name="ascending">
+ /// The ascending.
+ /// </param>
+ public VideoQualityLimits(float low, float high, float granularity, bool @ascending)
+ {
+ this.Low = low;
+ this.High = high;
+ this.Granularity = granularity;
+ this.Ascending = @ascending;
+ }
/// <summary>
- /// Gets or sets the inclusive upper limit for the quality.
+ /// Gets the inclusive lower limit for the quality.
/// </summary>
- public float High { get; set; }
+ public float Low { get; private set; }
/// <summary>
- /// Gets or sets the granularity for the quality.
+ /// Gets the inclusive upper limit for the quality.
/// </summary>
- public float Granularity { get; set; }
+ public float High { get; private set; }
/// <summary>
- /// Gets or sets a value indicating whether the quality increases as the number increases.
+ /// Gets the granularity for the quality.
/// </summary>
- public bool Ascending { get; set; }
+ public float Granularity { get; private set; }
+
+ /// <summary>
+ /// Gets a value indicating whether the quality increases as the number increases.
+ /// </summary>
+ public bool Ascending { get; private set; }
}
}
|