JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkWebAPI.h File Reference

Reconstructed interface for the applilink advert SDK's ApplilinkWebAPI transport layer. More...

import <Foundation/Foundation.h>
Include dependency graph for ApplilinkWebAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ApplilinkWebAPI
 Applilink SDK HTTP transport, retry policy, and response parsing. More...

Typedefs

typedef void(^ ApplilinkWebAPIFailedBlock) (id _Nullable request, NSError *_Nullable error)
 Block invoked when an applilink request fails.

Variables

NS_ASSUME_NONNULL_BEGIN typedef void(^ ApplilinkWebAPIFinishedBlock )(id _Nullable request, id _Nullable result)
 Block invoked when an applilink request finishes successfully.

Detailed Description

Reconstructed interface for the applilink advert SDK's ApplilinkWebAPI transport layer.

Reconstructed from Ghidra program Jubeat (class ApplilinkWebAPI, image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base.

ApplilinkWebAPI is the SDK's low-level HTTP transport: it assembles GET and POST NSMutableURLRequest objects from a base URL and a parameter dictionary (percent-joining each key=value pair and expanding array values into repeated key[]=value pairs), dispatches them synchronously or asynchronously through NSURLConnection , applies a bounded timeout-retry policy, parses the JSON response body with NSJSONSerialization , and maps transport and parse failures onto ApplilinkNetworkError codes. A second response path parses the contents server's newline-delimited body. The class carries a single retry counter as instance state; the remaining behaviour is expressed through class methods that wrap a throwaway instance.

This is Konami's applilink SDK. This build diverges from the other shipped build of the same class: the asynchronous completion handler runs a JSON null-scrub pass and persists the scrubbed body to NSUserDefaults , the callbacks receive the sent request rather than the caller's user info, the contents-server success path returns the accumulated body without invoking the finished block, and the synchronous retry loop compares the connection error code against an unusual sentinel rather than NSURLErrorTimedOut .

Typedef Documentation

◆ ApplilinkWebAPIFailedBlock

typedef void(^ ApplilinkWebAPIFailedBlock) (id _Nullable request, NSError *_Nullable error)

Block invoked when an applilink request fails.

Parameters
requestThe request that was sent.
errorThe failure, an NSError in the ApplilinkErrorDomain or NSURLErrorDomain domain.

Variable Documentation

◆ ApplilinkWebAPIFinishedBlock

NS_ASSUME_NONNULL_BEGIN typedef void(^ ApplilinkWebAPIFinishedBlock) (id _Nullable request, id _Nullable result) ( id _Nullable request,
id _Nullable result )

Block invoked when an applilink request finishes successfully.

Parameters
requestThe request that was sent.
resultThe parsed response, an NSDictionary for the JSON path.