Skip to content

Commit

Permalink
Introduce field GameEndTimestamp that was introduced in patch 11.20 (B…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas-Ding authored Oct 13, 2021
1 parent ad3b675 commit 47b70d8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion RiotSharp/Endpoints/MatchEndpoint/MatchInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using RiotSharp.Misc.Converters;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -27,6 +27,15 @@ internal MatchInfo() { }
[JsonConverter(typeof(TimeSpanConverterFromMilliseconds))]
public TimeSpan GameDuration { get; set; }

/// <summary>
/// The game duration.
/// Unix timestamp for when match ends on the game server.
/// This timestamp can occasionally be significantly longer than when the match "ends".
/// This field was added to match-v5 in patch 11.20 on Oct 5th, 2021.
/// </summary>
[JsonProperty("gameEndTimestamp")]
public long GameEndTimestamp { get; set; }

/// <summary>
/// Game ID.
/// </summary>
Expand Down

0 comments on commit 47b70d8

Please sign in to comment.