Skip to content

Commit 3fe60bf

Browse files
committed
Improved documentation
1 parent 2feb2d9 commit 3fe60bf

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

OpenActive.NET/DateTimeValue.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ public DateTimeValue(string value)
4646
}
4747

4848

49-
/// <summary>
50-
/// Gets the value of the current DateTimeValue object if it has been assigned an underlying value.
51-
/// </summary>
52-
public DateTimeOffset Value { get => NullableValue.Value; }
49+
/// <summary>
50+
/// Gets the value of the current DateTimeValue object if it has been assigned an underlying value.
51+
/// </summary>
52+
public DateTimeOffset Value { get => NullableValue.Value; }
5353

5454
/// <summary>
55-
/// Gets the value of the current DateTimeValue object as a Nullable<> type.
55+
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
5656
/// </summary>
5757
public DateTimeOffset? NullableValue { get; private set; }
5858

5959
/// <summary>
60-
/// Gets the value indicating whether the DateTimeValue object has a valid value of its underlying type
60+
/// Gets the value indicating whether the DateTimeValue object has a valid value
6161
/// </summary>
6262
public bool HasValue { get => NullableValue.HasValue; }
6363

@@ -78,7 +78,7 @@ object IValue.Value
7878
}
7979

8080
/// <summary>
81-
/// Gets a value indicating whether this instance has a value.
81+
/// Indicating whether the value represents only a date (true) or a date with time (false).
8282
/// </summary>
8383
public bool IsDateOnly { get; set; }
8484

@@ -135,7 +135,7 @@ object IValue.Value
135135
public override bool Equals(object obj) => obj is DateTimeValue ? this.Equals((DateTimeValue)obj) : false;
136136

137137
/// <summary>
138-
/// Implements ToString
138+
/// Returns the value in "yyyy-MM-dd" format (if IsDateOnly) or "yyyy-MM-ddTHH:mm:sszzz" format otherwise
139139
/// </summary>
140140
/// <returns>
141141
/// A string representing the relevant value

OpenActive.NET/DateValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public DateValue(string value)
4747
public DateTimeOffset Value { get => NullableValue.Value; }
4848

4949
/// <summary>
50-
/// Gets the value of the current DateValue object as a Nullable<> type.
50+
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
5151
/// </summary>
5252
public DateTimeOffset? NullableValue { get; private set; }
5353

@@ -125,7 +125,7 @@ object IValue.Value
125125
public override bool Equals(object obj) => obj is DateValue ? this.Equals((DateValue)obj) : false;
126126

127127
/// <summary>
128-
/// Implements ToString
128+
/// Returns the value in "yyyy-MM-dd" format
129129
/// </summary>
130130
/// <returns>
131131
/// A string representing the relevant value

OpenActive.NET/TimeValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public TimeValue(string value)
5656
public DateTimeOffset Value { get => NullableValue.Value; }
5757

5858
/// <summary>
59-
/// Gets the value of the current TimeValue object as a Nullable<> type.
59+
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
6060
/// </summary>
6161
public DateTimeOffset? NullableValue { get; private set; }
6262

@@ -134,7 +134,7 @@ object IValue.Value
134134
public override bool Equals(object obj) => obj is TimeValue ? this.Equals((TimeValue)obj) : false;
135135

136136
/// <summary>
137-
/// Implements ToString
137+
/// Returns the value in "HH:mm" format
138138
/// </summary>
139139
/// <returns>
140140
/// A string representing the relevant value

0 commit comments

Comments
 (0)