JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ScratchUtil Class Reference

Builds the URLs the application talks to. More...

#include <ScratchUtil.h>

Inheritance diagram for ScratchUtil:
Collaboration diagram for ScratchUtil:

Class Methods

(nullable NSURL *) + getEventTypeURL
 The endpoint the current event type is fetched from.
(nullable NSURL *) + getInheritOutputURL
 The endpoint an inherit code is requested from.
(nullable NSURL *) + pushNotificationIDSendURL
 The push-token registration endpoint URL.
(nullable NSURL *) + challengeModePolicyURL
 The challenge-mode policy endpoint URL.
(nullable NSURL *) + challengeSessionURL
 The begin-session endpoint URL.
(nullable NSURL *) + challengeInitializeURL
 The scratch init endpoint URL.
(nullable NSURL *) + challengeSimpleInitializeURL
 The scratch refresh-display endpoint URL.
(nullable NSURL *) + challengePrevScratchURL
 The previous-scratch-info endpoint URL.
(nullable NSURL *) + nailScratchURL
 The scratch-cell endpoint URL.
(nullable NSURL *) + cubeScratchURL
 The exchange-item endpoint URL.
(nullable NSURL *) + musicInfoURL
 The music-info endpoint URL.
(nullable NSURL *) + playMusicURL
 The start-play endpoint URL.
(nullable NSURL *) + restPlayCoinURL
 The exchange-item (rest-play-coin) endpoint URL.
(nullable NSURL *) + sendMusicScoreURL
 The send-score endpoint URL.
(nullable NSURL *) + getUserNameURL
 The change-name endpoint URL.
(nullable NSURL *) + registRivalURL
 The manage-rival (register) endpoint URL.
(nullable NSURL *) + removeRivalURL
 The manage-rival (remove) endpoint URL.
(nullable NSURL *) + searchRivalURL
 The fetch-name-by-id endpoint URL.
(nullable NSURL *) + rivalListURL
 The fetch-rival-list endpoint URL.
(nullable NSURL *) + rankingListURL
 The fetch-ranking endpoint URL.
(nullable NSURL *) + presentListURL
 The fetch-present-list endpoint URL.
(nullable NSURL *) + getPresentURL
 The fetch-present endpoint URL.
(nullable NSURL *) + cubePurchaseListURL
 The fetch-jcube-list endpoint URL.
(nullable NSURL *) + cubeVerifyReceiptURL
 The verify-receipt endpoint URL.
(nullable NSURL *) + registTotalPurchaseURL
 The send-sum-price endpoint URL.
(nullable NSURL *) + registUserAgeURL
 The register-age endpoint URL.
(nullable NSURL *) + getMissionListURL
 The fetch-sheet-list endpoint URL.
(nullable NSURL *) + getMissionSheetURL
 The fetch-mission-list endpoint URL.
(nullable NSURL *) + getMissionAchieveURL
 The check-achievement endpoint URL.
(nullable NSURL *) + getMissionAchieveCheckURL
 The update-achievement endpoint URL.
(nullable NSURL *) + openMissionAchieveURL
 The close-mission-achievement endpoint URL.
(nullable NSURL *) + getMissionRewardListURL
 The fetch-reward-list endpoint URL.
(nullable NSURL *) + getMissionRewardURL
 The fetch-reward-url endpoint URL.
(nullable NSURL *) + getMissionSkipURL
 The skip-mission endpoint URL.
(nullable NSURL *) + getInheritInputURL
 The confirm-user-id endpoint URL.
(nullable NSURL *) + getInheritReplaceURL
 The finish-transfer-user-id endpoint URL.
(nullable NSURL *) + recommendPackListURL
 The recommend-pack endpoint URL.
(nullable NSURL *) + getOchazukeURL
 The fetch-campaign-map endpoint URL.
(nullable NSURL *) + getInquiryURL
 The inquiry endpoint URL.
(nullable NSURL *) + getMissionSheetSetURL
 The mission sheet-set URL; forwards to +challengeSampleURL .
(nullable NSURL *) + challengeSampleURL
 A sample-scratch URL.
(nullable NSString *) + scratchImageDirectory
 The scratch-image cache directory, created on first use.
(nullable NSString *) + unlockPanelImageDirectory
 The unlock-panel-image cache directory, created on first use.
(nullable NSString *) + panelDataPath
 The temporary panel-data path inside the scratch-image directory.
(nullable NSString *) + imagePathForMusicID:
 The scratch image path for a tune.
(nullable NSString *) + itemPathForMusicID:
 The tune data path, preferring the downloaded store file when present.
(nullable NSString *) + panelImagePathForItemID:
 The unlock-panel image path for an item.
(nullable NSString *) + checkRegularPanelImage
 A regular-panel-image check.
(void) + clearScratchData
 Clears the scratch-image cache directory and recreates it empty.

Properties

NSURL * pushNotificationResponseURL
 The endpoint a push-notification receipt is reported to.

Detailed Description

Builds the URLs the application talks to.

Method Documentation

◆ challengeInitializeURL

+ (NSURL *) challengeInitializeURL

The scratch init endpoint URL.

Returns
The scratch-init URL.
Ghidra address:
0x1807a0
Ghidra address:
0x1807a0

◆ challengeModePolicyURL

+ (NSURL *) challengeModePolicyURL

The challenge-mode policy endpoint URL.

Returns
The challenge-mode policy URL.
Ghidra address:
0x1805f8
Ghidra address:
0x1805f8

◆ challengePrevScratchURL

+ (NSURL *) challengePrevScratchURL

The previous-scratch-info endpoint URL.

Returns
The previous-scratch-info URL.
Ghidra address:
0x180948
Ghidra address:
0x180948

◆ challengeSampleURL

+ (NSURL *) challengeSampleURL

A sample-scratch URL.

Always nil in the shipped build.

Returns
Always nil in the shipped build.
Ghidra address:
0x180448
Ghidra address:
0x180448

◆ challengeSessionURL

+ (NSURL *) challengeSessionURL

The begin-session endpoint URL.

Returns
The begin-session URL.
Ghidra address:
0x1806cc
Ghidra address:
0x1806cc

◆ challengeSimpleInitializeURL

+ (NSURL *) challengeSimpleInitializeURL

The scratch refresh-display endpoint URL.

Returns
The scratch refresh-display URL.
Ghidra address:
0x180874
Ghidra address:
0x180874

◆ checkRegularPanelImage

+ (NSString *) checkRegularPanelImage

A regular-panel-image check.

Always nil in the shipped build.

Returns
Always nil in the shipped build.
Ghidra address:
0x18286c
Ghidra address:
0x18286c

◆ clearScratchData

+ (void) clearScratchData

Clears the scratch-image cache directory and recreates it empty.

Ghidra address:
0x181c8c

◆ cubePurchaseListURL

+ (NSURL *) cubePurchaseListURL

The fetch-jcube-list endpoint URL.

Returns
The fetch-jcube-list URL.
Ghidra address:
0x1815b4
Ghidra address:
0x1815b4

◆ cubeScratchURL

+ (NSURL *) cubeScratchURL

The exchange-item endpoint URL.

Returns
The exchange-item URL.
Ghidra address:
0x180af0
Ghidra address:
0x180af0

◆ cubeVerifyReceiptURL

+ (NSURL *) cubeVerifyReceiptURL

The verify-receipt endpoint URL.

Returns
The verify-receipt URL.
Ghidra address:
0x181688
Ghidra address:
0x181688

◆ getEventTypeURL

+ (NSURL *) getEventTypeURL

The endpoint the current event type is fetched from.

Fetched during -[LogoViewController loadView] , so the answer is in hand by the time the splash ends.

Returns
The event-type URL.
Ghidra address:
0x1829e4
Ghidra address:
0x1829e4

◆ getInheritInputURL

+ (NSURL *) getInheritInputURL

The confirm-user-id endpoint URL.

Returns
The confirm-user-id URL.
Ghidra address:
0x1824a0
Ghidra address:
0x1824a0

◆ getInheritOutputURL

+ (NSURL *) getInheritOutputURL

The endpoint an inherit code is requested from.

Sent by -[InheritCodePayView tapCodeOutput:] with the editor identity as its POST body.

Returns
The inherit-code request URL.
Ghidra address:
0x1823cc
Ghidra address:
0x1823cc

◆ getInheritReplaceURL

+ (NSURL *) getInheritReplaceURL

The finish-transfer-user-id endpoint URL.

Returns
The finish-transfer-user-id URL.
Ghidra address:
0x182574
Ghidra address:
0x182574

◆ getInquiryURL

+ (NSURL *) getInquiryURL

The inquiry endpoint URL.

Returns
The inquiry URL.
Ghidra address:
0x182874
Ghidra address:
0x182874

◆ getMissionAchieveCheckURL

+ (NSURL *) getMissionAchieveCheckURL

The update-achievement endpoint URL.

Returns
The update-achievement URL.
Ghidra address:
0x181f9c
Ghidra address:
0x181f9c

◆ getMissionAchieveURL

+ (NSURL *) getMissionAchieveURL

The check-achievement endpoint URL.

Returns
The check-achievement URL.
Ghidra address:
0x181ec8
Ghidra address:
0x181ec8

◆ getMissionListURL

+ (NSURL *) getMissionListURL

The fetch-sheet-list endpoint URL.

Returns
The fetch-sheet-list URL.
Ghidra address:
0x181d20
Ghidra address:
0x181d20

◆ getMissionRewardListURL

+ (NSURL *) getMissionRewardListURL

The fetch-reward-list endpoint URL.

Returns
The fetch-reward-list URL.
Ghidra address:
0x182144
Ghidra address:
0x182144

◆ getMissionRewardURL

+ (NSURL *) getMissionRewardURL

The fetch-reward-url endpoint URL.

Returns
The fetch-reward-url URL.
Ghidra address:
0x182218
Ghidra address:
0x182218

◆ getMissionSheetSetURL

+ (NSURL *) getMissionSheetSetURL

The mission sheet-set URL; forwards to +challengeSampleURL .

Returns
Whatever +challengeSampleURL returns, so always nil in the shipped build.
Ghidra address:
0x1822ec
Ghidra address:
0x1822ec

◆ getMissionSheetURL

+ (NSURL *) getMissionSheetURL

The fetch-mission-list endpoint URL.

Returns
The fetch-mission-list URL.
Ghidra address:
0x181df4
Ghidra address:
0x181df4

◆ getMissionSkipURL

+ (NSURL *) getMissionSkipURL

The skip-mission endpoint URL.

Returns
The skip-mission URL.
Ghidra address:
0x1822f8
Ghidra address:
0x1822f8

◆ getOchazukeURL

+ (NSURL *) getOchazukeURL

The fetch-campaign-map endpoint URL.

Returns
The fetch-campaign-map URL.
Ghidra address:
0x182ab8
Ghidra address:
0x182ab8

◆ getPresentURL

+ (NSURL *) getPresentURL

The fetch-present endpoint URL.

Returns
The fetch-present URL.
Ghidra address:
0x1814e0
Ghidra address:
0x1814e0

◆ getUserNameURL

+ (NSURL *) getUserNameURL

The change-name endpoint URL.

Returns
The change-name URL.
Ghidra address:
0x180f14
Ghidra address:
0x180f14

◆ imagePathForMusicID:

+ (NSString *) imagePathForMusicID: (unsigned int) musicID

The scratch image path for a tune.

A zero identifier maps to the bundled scratch_btn_scratch_00.png ; otherwise "<scratchImageDirectory>/aw%09d.img" .

Parameters
musicIDThe tune identifier.
Returns
The scratch image path for the tune.
Ghidra address:
0x1819f8
Ghidra address:
0x1819f8

◆ itemPathForMusicID:

+ (NSString *) itemPathForMusicID: (unsigned int) musicID

The tune data path, preferring the downloaded store file when present.

When the tune is in the store list and its +[StoreUtil filePathForMusicID:] exists on disk that path is returned; otherwise "<scratchImageDirectory>/%09d.jbt" .

Parameters
musicIDThe tune identifier.
Returns
The downloaded store file path when it exists, otherwise the scratch-directory path.
Ghidra address:
0x181b24
Ghidra address:
0x181b24

◆ musicInfoURL

+ (NSURL *) musicInfoURL

The music-info endpoint URL.

Returns
The music-info URL.
Ghidra address:
0x180bc4
Ghidra address:
0x180bc4

◆ nailScratchURL

+ (NSURL *) nailScratchURL

The scratch-cell endpoint URL.

Returns
The scratch-cell URL.
Ghidra address:
0x180a1c
Ghidra address:
0x180a1c

◆ openMissionAchieveURL

+ (NSURL *) openMissionAchieveURL

The close-mission-achievement endpoint URL.

Returns
The close-mission-achievement URL.
Ghidra address:
0x182070
Ghidra address:
0x182070

◆ panelDataPath

+ (NSString *) panelDataPath

The temporary panel-data path inside the scratch-image directory.

Returns
The panel-data path.
Ghidra address:
0x18273c
Ghidra address:
0x18273c

◆ panelImagePathForItemID:

+ (NSString *) panelImagePathForItemID: (int) itemID

The unlock-panel image path for an item.

Parameters
itemIDThe item identifier.
Returns
The unlock-panel image path for the item.
Ghidra address:
0x1827b0
Ghidra address:
0x1827b0

◆ playMusicURL

+ (NSURL *) playMusicURL

The start-play endpoint URL.

Returns
The start-play URL.
Ghidra address:
0x180c98
Ghidra address:
0x180c98

◆ presentListURL

+ (NSURL *) presentListURL

The fetch-present-list endpoint URL.

Returns
The fetch-present-list URL.
Ghidra address:
0x18140c
Ghidra address:
0x18140c

◆ pushNotificationIDSendURL

+ (NSURL *) pushNotificationIDSendURL

The push-token registration endpoint URL.

Returns
The push-token registration URL.
Ghidra address:
0x180450
Ghidra address:
0x180450

◆ rankingListURL

+ (NSURL *) rankingListURL

The fetch-ranking endpoint URL.

Returns
The fetch-ranking URL.
Ghidra address:
0x181338
Ghidra address:
0x181338

◆ recommendPackListURL

+ (NSURL *) recommendPackListURL

The recommend-pack endpoint URL.

Returns
The recommend-pack URL.
Ghidra address:
0x182910
Ghidra address:
0x182910

◆ registRivalURL

+ (NSURL *) registRivalURL

The manage-rival (register) endpoint URL.

Returns
The rival-registration URL.
Ghidra address:
0x180fe8
Ghidra address:
0x180fe8

◆ registTotalPurchaseURL

+ (NSURL *) registTotalPurchaseURL

The send-sum-price endpoint URL.

Returns
The send-sum-price URL.
Ghidra address:
0x18175c
Ghidra address:
0x18175c

◆ registUserAgeURL

+ (NSURL *) registUserAgeURL

The register-age endpoint URL.

Returns
The register-age URL.
Ghidra address:
0x181830
Ghidra address:
0x181830

◆ removeRivalURL

+ (NSURL *) removeRivalURL

The manage-rival (remove) endpoint URL.

Returns
The rival-removal URL.
Ghidra address:
0x1810bc
Ghidra address:
0x1810bc

◆ restPlayCoinURL

+ (NSURL *) restPlayCoinURL

The exchange-item (rest-play-coin) endpoint URL.

Returns
The rest-play-coin URL.
Ghidra address:
0x180d6c
Ghidra address:
0x180d6c

◆ rivalListURL

+ (NSURL *) rivalListURL

The fetch-rival-list endpoint URL.

Returns
The fetch-rival-list URL.
Ghidra address:
0x181264
Ghidra address:
0x181264

◆ scratchImageDirectory

+ (NSString *) scratchImageDirectory

The scratch-image cache directory, created on first use.

Returns
The directory path, or nil when it cannot be created.
Ghidra address:
0x181904
Ghidra address:
0x181904

◆ searchRivalURL

+ (NSURL *) searchRivalURL

The fetch-name-by-id endpoint URL.

Returns
The fetch-name-by-id URL.
Ghidra address:
0x181190
Ghidra address:
0x181190

◆ sendMusicScoreURL

+ (NSURL *) sendMusicScoreURL

The send-score endpoint URL.

Returns
The send-score URL.
Ghidra address:
0x180e40
Ghidra address:
0x180e40

◆ unlockPanelImageDirectory

+ (NSString *) unlockPanelImageDirectory

The unlock-panel-image cache directory, created on first use.

Returns
The directory path, or nil when it cannot be created.
Ghidra address:
0x182648
Ghidra address:
0x182648

Property Documentation

◆ pushNotificationResponseURL

- (NSURL *) pushNotificationResponseURL
readnonatomicassign

The endpoint a push-notification receipt is reported to.

Built in two formatting steps from four separate literals, and with no branch anywhere in the method — so the endpoint is fixed, with no staging or debug host to select between.

Ghidra address:
0x180524
Ghidra address:
0x180524

The documentation for this class was generated from the following files: