Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Jun 20, 2021
1 parent 2feb2d9 commit 3fe60bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions OpenActive.NET/DateTimeValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ public DateTimeValue(string value)
}


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

/// <summary>
/// Gets the value of the current DateTimeValue object as a Nullable<> type.
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
/// </summary>
public DateTimeOffset? NullableValue { get; private set; }

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

Expand All @@ -78,7 +78,7 @@ object IValue.Value
}

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

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

/// <summary>
/// Implements ToString
/// Returns the value in "yyyy-MM-dd" format (if IsDateOnly) or "yyyy-MM-ddTHH:mm:sszzz" format otherwise
/// </summary>
/// <returns>
/// A string representing the relevant value
Expand Down
4 changes: 2 additions & 2 deletions OpenActive.NET/DateValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public DateValue(string value)
public DateTimeOffset Value { get => NullableValue.Value; }

/// <summary>
/// Gets the value of the current DateValue object as a Nullable<> type.
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
/// </summary>
public DateTimeOffset? NullableValue { get; private set; }

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

/// <summary>
/// Implements ToString
/// Returns the value in "yyyy-MM-dd" format
/// </summary>
/// <returns>
/// A string representing the relevant value
Expand Down
4 changes: 2 additions & 2 deletions OpenActive.NET/TimeValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public TimeValue(string value)
public DateTimeOffset Value { get => NullableValue.Value; }

/// <summary>
/// Gets the value of the current TimeValue object as a Nullable<> type.
/// Gets the value of the underlying DateTimeOffset? object as a Nullable<> type.
/// </summary>
public DateTimeOffset? NullableValue { get; private set; }

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

/// <summary>
/// Implements ToString
/// Returns the value in "HH:mm" format
/// </summary>
/// <returns>
/// A string representing the relevant value
Expand Down

0 comments on commit 3fe60bf

Please sign in to comment.