/// <summary>
            /// Coroutine that retrieves the WoW Token index, as a raw JSON string.
            /// </summary>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <returns></returns>
            public static IEnumerator GetWoWTokenIndexRaw(BattleNetRegion region, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null)
            {
                string path = API_PATH_WOWTOKENINDEX;

                yield return(SendRequest(region, NAMESPACE_DYNAMIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an index of creature types, as a raw JSON string.
            /// </summary>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetCreatureTypesIndexRaw(Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_CREATURETYPESINDEX;

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an index of guild crest media, as a raw JSON string.
            /// </summary>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetGuildCrestComponentsIndexRaw(Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_GUILDCRESTCOMPONENTSINDEX;

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves media for a mythic keystone affix by ID, as a raw JSON string.
            /// </summary>
            /// <param name="keystoneAffixId">The ID of the mythic keystone affix.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetMythicKeystoneAffixMediaRaw(int keystoneAffixId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_MYTHICKEYSTONEAFFIXMEDIA, keystoneAffixId);

                yield return(SendRequest(region, NAMESPACE_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves media for a playable class by ID, as a raw JSON string.
            /// </summary>
            /// <param name="playableClassId">The ID of the playable class.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetPlayableClassMediaRaw(int playableClassId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_PLAYABLECLASSMEDIA, playableClassId);

                yield return(SendRequest(region, NAMESPACE_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an item subclass by ID, as a raw JSON string.
            /// </summary>
            /// <param name="itemClassId">The ID of the item class.</param>
            /// <param name="itemSubclassId">The ID of the item subclass.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetItemSubclassRaw(int itemClassId, int itemSubclassId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_ITEMSUBCLASS, itemClassId, itemSubclassId);

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves a Mythic Keystone period by ID, as a raw JSON string.
            /// </summary>
            /// <param name="periodId">The ID of the Mythic Keystone season period.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetMythicKeystonePeriodRaw(int periodId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_MYTHICKEYSTONEPERIOD, periodId);

                yield return(SendRequest(region, NAMESPACE_DYNAMIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
예제 #8
0
            /// <summary>
            /// Coroutine that retrieves an index of mounts.
            /// </summary>
            /// <param name="action_Result">Action to execute with the data once retrieved and converted.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetMountsIndex(Action <Json_Wow_MountsIndex> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_MOUNTSINDEX;

                yield return(SendRequest(region, NAMESPACE_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an achievement category by ID, as a raw JSON string.
            /// </summary>
            /// <param name="achievementCategoryId">The ID of the achievement category.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetAchievementCategoryRaw(int achievementCategoryId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_ACHIEVEMENTCATEGORY, achievementCategoryId);

                yield return(SendRequest(region, NAMESPACE_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
예제 #10
0
            /// <summary>
            /// Coroutine that retrieves media for a creature family by ID, as a raw JSON string.
            /// </summary>
            /// <param name="creatureFamilyId">The ID of the creature family.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetCreatureFamilyMediaRaw(int creatureFamilyId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_CREATUREFAMILYMEDIA, creatureFamilyId);

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an index of realms, as a raw JSON string.
            /// </summary>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetRealmsIndexRaw(Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_REALMSINDEX;

                yield return(SendRequest(region, NAMESPACE_DYNAMIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
예제 #12
0
            /// <summary>
            /// Coroutine that retrieves media for a guild crest emblem by ID, as a raw JSON string.
            /// </summary>
            /// <param name="emblemId">The ID of the guild crest emblem.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetGuildCrestEmblemMediaRaw(int emblemId, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_GUILDCRESTEMBLEMMEDIA, emblemId);

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
예제 #13
0
            /// <summary>
            /// Coroutine that retrieves a weekly Mythic Keystone Leaderboard by period, as a raw JSON string.
            /// </summary>
            /// <param name="connectedRealmId">The ID of the connected realm.</param>
            /// <param name="dungeonId">The ID of the dungeon.</param>
            /// <param name="period">The unique identifier for the leaderboard period.</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetMythicKeystoneLeaderboardRaw(int connectedRealmId, int dungeonId, int period, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = string.Format(API_PATH_MYTHICKEYSTONELEADERBOARD, connectedRealmId, dungeonId, period);

                yield return(SendRequest(region, NAMESPACE_DYNAMIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an index of journal instances, as a raw JSON string.
            /// </summary>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetJournalInstancesIndexRaw(Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_JOURNALINSTANCESINDEX;

                yield return(SendRequest(region, NAMESPACE_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
            /// <summary>
            /// Coroutine that retrieves an index of playable races.
            /// </summary>
            /// <param name="action_Result">Action to execute with the data once retrieved and converted.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <returns></returns>
            public static IEnumerator GetPlayableRacesIndex(Action <Json_WowClassic_PlayableRacesIndex> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null, BattleNetRegion region = DEFAULT_REGION)
            {
                string path = API_PATH_PLAYABLERACESINDEX;

                yield return(SendRequest(region, NAMESPACE_CLASSIC_STATIC, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }
예제 #16
0
            /// <summary>
            /// Coroutine that retrieves the PvP bracket statistics for a character, as a raw JSON string.
            /// </summary>
            /// <param name="region">The region of the data to retrieve.</param>
            /// <param name="realmSlug">The slug of the realm.</param>
            /// <param name="characterName">The lowercase name of the character.</param>
            /// <param name="pvpBracket">"The PvP bracket type ("2v2", "3v3", or "rbg")."</param>
            /// <param name="action_Result">Action to execute with the raw JSON string.</param>
            /// <param name="ifModifiedSince">Adds a request header to check if the document has been modified since this date (in HTML format), which will return an empty response body if it's older.</param>
            /// <param name="action_LastModified">Action to execute with the date of the last server-side modification to the document.</param>
            /// <param name="action_OnError">Action to execute when the request returns an error.</param>
            /// <returns></returns>
            public static IEnumerator GetCharacterPvPBracketStatisticsRaw(BattleNetRegion region, string realmSlug, string characterName, string pvpBracket, Action <string> action_Result, string ifModifiedSince = null, Action <string> action_LastModified = null, Action <string> action_OnError = null)
            {
                string path = FormatWowCharacterEndpointPath(realmSlug, characterName) + string.Format(API_PATH_CHARACTERPVPBRACKETSTATISTICS, pvpBracket);

                yield return(SendRequest(region, NAMESPACE_PROFILE, path, action_Result, ifModifiedSince, action_LastModified, action_OnError));
            }