/// <summary> /// Request a single match using a PUBG replay /// </summary> /// <param name="ReplayDirectoryPath">The replay to look up</param> /// <returns></returns> public APIRequest RequestMatch(string ReplayDirectoryPath) { Replay.Replay replay = new Replay.Replay(ReplayDirectoryPath); APIRequest APIRequest = new APIRequest(); return(APIRequest.RequestSingleMatch(APIKey, GetEnumDescription(replay.Summary.KnownRegion), replay.Info.MatchID)); }
/// <summary> /// Request a single match using a MatchID and Platform-Region Shard that the match was played in /// </summary> /// <param name="MatchID">The MatchID to look up</param> /// <param name="platformRegionShard">The region the match was played in</param> /// <returns></returns> public APIRequest RequestMatch(string MatchID, PlatformRegionShard platformRegionShard) { APIRequest APIRequest = new APIRequest(); APIRequest request = APIRequest.RequestSingleMatch(APIKey, GetEnumDescription(platformRegionShard), MatchID); return(request); }
/// <summary> /// Request a single match using a PUBG replay /// </summary> /// <param name="ReplayDirectoryPath">The replay to look up</param> /// <returns></returns> public APIRequest RequestMatch(string ReplayDirectoryPath, bool DownloadTelemetryAutomatically = true) { Replay.Replay replay = new Replay.Replay(ReplayDirectoryPath); APIRequest APIRequest = new APIRequest(); return(APIRequest.RequestSingleMatch(APIKey, GetEnumDescription(replay.Summary.KnownRegion), replay.Info.MatchID, DownloadTelemetryAutomatically)); }
/// <summary> /// Request a single match using a MatchID and Platform-Region Shard that the match was played in /// </summary> /// <param name="MatchID">The MatchID to look up</param> /// <param name="platformRegionShard">The region the match was played in</param> /// <returns></returns> public APIRequest RequestMatch(string MatchID, PlatformRegionShard platformRegionShard, bool DownloadTelemetryAutomatically = true) { APIRequest APIRequest = new APIRequest(); APIRequest request = APIRequest.RequestSingleMatch(APIKey, GetEnumDescription(platformRegionShard), MatchID, DownloadTelemetryAutomatically); return(request); }
/// <summary> /// Request a single match using the Replay class /// </summary> /// <param name="replay">The replay to read</param> /// <returns></returns> public APIRequest RequestMatch(Replay.Replay replay) { APIRequest APIRequest = new APIRequest(); return(APIRequest.RequestSingleMatch(APIKey, GetEnumDescription(replay.Summary.KnownRegion), replay.Info.MatchID)); }
public API(string MatchID, Platform platform, Region KnownRegion, string APIKey) { SetPlatformRegion(KnownRegion, platform); APIRequest.RequestSingleMatch(APIKey, PlatformRegion, MatchID); }