Пример #1
0
        /// <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));
        }
Пример #2
0
        /// <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);
        }
Пример #3
0
        /// <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));
        }
Пример #4
0
        /// <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);
        }
Пример #5
0
        /// <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));
        }
Пример #6
0
 public API(string MatchID, Platform platform, Region KnownRegion, string APIKey)
 {
     SetPlatformRegion(KnownRegion, platform);
     APIRequest.RequestSingleMatch(APIKey, PlatformRegion, MatchID);
 }