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

The recommend network's web-API facade. More...

#include <RecommendWebAPI.h>

Inheritance diagram for RecommendWebAPI:
Collaboration diagram for RecommendWebAPI:

Class Methods

(void) + checkLoginWithCallback:
 Check whether the recommend session is still logged in.
(void) + startLoginWithCallback:
 Start a recommend login for the stored user identifier.
(void) + getAdDetailWithCallback:
 Fetch the advert-external detail, refreshing the cached category and country codes.
(void) + installAppliListWithCallBack:
 Fetch the installed-application list and store it on ApplilinkConsts.
(void) + appliListWithParameters:callBack:
 Fetch the installed-application list for the given parameters, forcing the test flag.
(void) + postApplicationInstallWithAdIdFrom:categoryId:adType:priority:callback:
 Post the application-install record for the current advertising identifier.
(void) + getBannerDetailWithAdModel:callback:
 Fetch the banner-detail display status for an advert model.
(void) + readRegistWithAdType:adIdList:callback:
 Register a read for an advert type across a list of advertising identifiers.
(void) + getUnreadCountWithAdModel:adLocation:callback:
 Fetch the unread advert count for an advert model at an ad location.
(void) + getPreInfoWithAdModel:adLocation:callback:
 Fetch the pre-info display status for an advert model at an ad location.
(void) + setTemporaryCacheWithAdModel:value:expiration:
 Persist the display-status cache entry for an advert model with an expiry.
(nullable id) + getTemporaryCacheWithAdModel:
 Read the still-valid cached display status for an advert model.
(void) + clickRegistWithAdIdFrom:adIdTo:adModel:callback:
 Register a click for a first-party advert and return its resolved location.
(void) + appStartWithAdIdFrom:adIdTo:adType:callback:
 Register an application start for a first-party advert.
(void) + allAdDataWithCallBack:
 Fetch every advert-data record for display and forward the raw response.
(void) + layoutIndexWithCallback:
 Fetch the recommend layout index and store the template list on ApplilinkConsts.
(nullable NSURLRequest *) + clickRegistWithAdIdFrom:adIdTo:adModel:
 Build the click-registration request for a first-party advert.
(nullable NSURLRequest *) + appStartWithAdIdFrom:adIdTo:adType:
 Build the application-start request for a first-party advert.

Detailed Description

The recommend network's web-API facade.

Method Documentation

◆ allAdDataWithCallBack:

+ (void) allAdDataWithCallBack: (nullable void(^)(id _Nullable data, NSError *_Nullable error)) callback

Fetch every advert-data record for display and forward the raw response.

Parameters
callbackThe completion callback invoked with the response data and an error.
Ghidra address:
0x265d5c

◆ appliListWithParameters:callBack:

+ (void) appliListWithParameters: (nullable NSDictionary *) parameters
callBack: (nullable void(^)(id _Nullable list, NSError *_Nullable error)) callBack 

Fetch the installed-application list for the given parameters, forcing the test flag.

Parameters
parametersThe base request parameters.
callBackThe completion callback invoked with the list and an error.
Ghidra address:
0x2629d4

◆ appStartWithAdIdFrom:adIdTo:adType:

+ (nullable NSURLRequest *) appStartWithAdIdFrom: (nullable NSString *) adIdFrom
adIdTo: (nullable NSString *) adIdTo
adType: (int) adType 

Build the application-start request for a first-party advert.

Parameters
adIdFromThe source advertising identifier.
adIdToThe destination advertising identifier.
adTypeThe advert-type identifier.
Returns
The application-start request.
Ghidra address:
0x266820

◆ appStartWithAdIdFrom:adIdTo:adType:callback:

+ (void) appStartWithAdIdFrom: (nullable NSString *) adIdFrom
adIdTo: (nullable NSString *) adIdTo
adType: (int) adType
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Register an application start for a first-party advert.

Parameters
adIdFromThe source advertising identifier.
adIdToThe destination advertising identifier.
adTypeThe advert-type identifier.
callbackThe completion callback invoked with an error.
Ghidra address:
0x265910

◆ checkLoginWithCallback:

+ (void) checkLoginWithCallback: (nullable void(^)(BOOL loginStatus, BOOL userIdPresent, NSError *_Nullable error)) callback

Check whether the recommend session is still logged in.

When ApplilinkConsts reports a fresh login is required, the callback is invoked immediately; otherwise the login-status endpoint is queried.

Parameters
callbackThe completion callback invoked with the login state, a secondary flag, and an error.
Ghidra address:
0x261104

◆ clickRegistWithAdIdFrom:adIdTo:adModel:

+ (nullable NSURLRequest *) clickRegistWithAdIdFrom: (nullable NSString *) adIdFrom
adIdTo: (nullable NSString *) adIdTo
adModel: (int) adModel 

Build the click-registration request for a first-party advert.

Parameters
adIdFromThe source advertising identifier.
adIdToThe destination advertising identifier.
adModelThe advert-model identifier.
Returns
The click-registration request.
Ghidra address:
0x2665e0

◆ clickRegistWithAdIdFrom:adIdTo:adModel:callback:

+ (void) clickRegistWithAdIdFrom: (nullable NSString *) adIdFrom
adIdTo: (nullable NSString *) adIdTo
adModel: (int) adModel
callback: (nullable void(^)(id _Nullable location, NSError *_Nullable error)) callback 

Register a click for a first-party advert and return its resolved location.

Parameters
adIdFromThe source advertising identifier.
adIdToThe destination advertising identifier.
adModelThe advert-model identifier.
callbackThe completion callback invoked with the resolved location and an error.
Ghidra address:
0x26542c

◆ getAdDetailWithCallback:

+ (void) getAdDetailWithCallback: (nullable void(^)(id _Nullable categoryId, id _Nullable countryCode, NSError *_Nullable error)) callback

Fetch the advert-external detail, refreshing the cached category and country codes.

When the cached detail is still valid the cached category and country codes are returned without a network request.

Parameters
callbackThe completion callback invoked with the category identifier, country code, and an error.
Ghidra address:
0x261afc

◆ getBannerDetailWithAdModel:callback:

+ (void) getBannerDetailWithAdModel: (int) adModel
callback: (nullable void(^)(NSInteger status, NSError *_Nullable error)) callback 

Fetch the banner-detail display status for an advert model.

When the per-model cache holds an available banner the cached status is returned without a network request.

Parameters
adModelThe advert-model identifier.
callbackThe completion callback invoked with the display status and an error.
Ghidra address:
0x263624

◆ getPreInfoWithAdModel:adLocation:callback:

+ (void) getPreInfoWithAdModel: (int) adModel
adLocation: (nullable NSString *) adLocation
callback: (nullable void(^)(NSDictionary *_Nullable status, NSError *_Nullable error)) callback 

Fetch the pre-info display status for an advert model at an ad location.

Parameters
adModelThe advert-model identifier.
adLocationThe ad-location identifier.
callbackThe completion callback invoked with the status dictionary and an error.
Ghidra address:
0x2645c4

◆ getTemporaryCacheWithAdModel:

+ (id) getTemporaryCacheWithAdModel: (int) adModel

Read the still-valid cached display status for an advert model.

An expired entry is removed from the cache and nil is returned.

Parameters
adModelThe advert-model identifier used as the cache key.
Returns
The cached status, or nil when absent or expired.
Ghidra address:
0x2650f4

◆ getUnreadCountWithAdModel:adLocation:callback:

+ (void) getUnreadCountWithAdModel: (int) adModel
adLocation: (nullable NSString *) adLocation
callback: (nullable void(^)(NSInteger status, NSError *_Nullable error)) callback 

Fetch the unread advert count for an advert model at an ad location.

Parameters
adModelThe advert-model identifier.
adLocationThe ad-location identifier.
callbackThe completion callback invoked with the count and an error.
Ghidra address:
0x2640e4

◆ installAppliListWithCallBack:

+ (void) installAppliListWithCallBack: (nullable void(^)(id _Nullable list, NSError *_Nullable error)) callback

Fetch the installed-application list and store it on ApplilinkConsts.

Parameters
callbackThe completion callback invoked with the list and an error.
Ghidra address:
0x26237c

◆ layoutIndexWithCallback:

+ (void) layoutIndexWithCallback: (nullable void(^)(NSError *_Nullable error)) callback

Fetch the recommend layout index and store the template list on ApplilinkConsts.

Parameters
callbackThe completion callback invoked with an error.
Ghidra address:
0x26625c

◆ postApplicationInstallWithAdIdFrom:categoryId:adType:priority:callback:

+ (void) postApplicationInstallWithAdIdFrom: (nullable NSString *) adIdFrom
categoryId: (nullable NSString *) categoryId
adType: (nullable NSString *) adType
priority: (int) priority
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Post the application-install record for the current advertising identifier.

Parameters
adIdFromThe source advertising identifier.
categoryIdThe advert category identifier.
adTypeThe advert-type string.
priorityThe install priority; zero skips the UDID-parameter requirement check.
callbackThe completion callback invoked with an error.
Ghidra address:
0x262f78

◆ readRegistWithAdType:adIdList:callback:

+ (void) readRegistWithAdType: (int) adType
adIdList: (nullable NSArray *) adIdList
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Register a read for an advert type across a list of advertising identifiers.

Parameters
adTypeThe advert-type identifier; zero omits the advert-type parameter.
adIdListThe advertising identifiers to mark read.
callbackThe completion callback invoked with an error.
Ghidra address:
0x263ca8

◆ setTemporaryCacheWithAdModel:value:expiration:

+ (void) setTemporaryCacheWithAdModel: (int) adModel
value: (NSInteger) value
expiration: (NSInteger) expiration 

Persist the display-status cache entry for an advert model with an expiry.

Parameters
adModelThe advert-model identifier used as the cache key.
valueThe status value to cache.
expirationThe expiry, in seconds from now; zero caches for one second.
Ghidra address:
0x264cf0

◆ startLoginWithCallback:

+ (void) startLoginWithCallback: (nullable void(^)(NSError *_Nullable error)) callback

Start a recommend login for the stored user identifier.

Parameters
callbackThe completion callback invoked with an error.
Ghidra address:
0x26156c

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