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

The reward network's web-API client. More...

#include <RewardWebAPI.h>

Inheritance diagram for RewardWebAPI:
Collaboration diagram for RewardWebAPI:

Class Methods

(void) + postApplicationInstallWithPriority:callback:
 Posts the application-install registration for a UDID priority.
(void) + checkLoginWithBlock:
 Checks the reward login status.
(void) + startLoginWithUserId:withPriority:callback:
 Starts a reward login for a user id at a UDID priority.
(void) + appListWithCampaignId:inCompany:offset:limit:callback:
 Fetches the reward application list.
(void) + appliIdListWithType:callback:
 Fetches the reward application-id list of a type.
(void) + allInstallFlgWithCallback:
 Fetches the all-install flag, caching it.
(void) + getPreInfoWithCallback:
 Fetches the pre-info display flag, caching it.
(void) + postAppliInstallReportWithAppliList:callback:
 Posts an install report, paging the application list in chunks of ten.
(void) + bannerInfoWithBlock:
 Fetches the reward banner detail.
(void) + setSignatureWithParameters:
 Adds a SHA-256 signature over the sorted, joined parameters to a request dictionary.
(void) + setTemporaryCacheWithKey:value:expiration:
 Archives a value with an expiry into NSUserDefaults under a key.

Detailed Description

The reward network's web-API client.

Method Documentation

◆ allInstallFlgWithCallback:

+ (void) allInstallFlgWithCallback: (nullable void(^)(NSInteger flg, NSError *_Nullable error)) callback

Fetches the all-install flag, caching it.

Parameters
callbackInvoked with the flag and an optional error.
Ghidra address:
0x255ad0

◆ appliIdListWithType:callback:

+ (void) appliIdListWithType: (int) type
callback: (nullable void(^)(NSDictionary *_Nullable result, NSError *_Nullable error)) callback 

Fetches the reward application-id list of a type.

Parameters
typeThe list type.
callbackInvoked with the result dictionary and an optional error.
Ghidra address:
0x255704

◆ appListWithCampaignId:inCompany:offset:limit:callback:

+ (void) appListWithCampaignId: (nullable NSString *) campaignId
inCompany: (nullable NSString *) company
offset: (nullable NSString *) offset
limit: (nullable NSString *) limit
callback: (nullable void(^)(NSDictionary *_Nullable result, NSError *_Nullable error)) callback 

Fetches the reward application list.

Parameters
campaignIdThe campaign identifier.
companyThe company filter.
offsetThe result offset.
limitThe result limit.
callbackInvoked with the result dictionary and an optional error.
Ghidra address:
0x255340

◆ bannerInfoWithBlock:

+ (void) bannerInfoWithBlock: (nullable void(^)(NSDictionary *_Nullable result, NSError *_Nullable error)) block

Fetches the reward banner detail.

Parameters
blockInvoked with the result dictionary and an optional error.
Ghidra address:
0x256adc

◆ checkLoginWithBlock:

+ (void) checkLoginWithBlock: (nullable void(^)(BOOL valid, NSError *_Nullable error)) block

Checks the reward login status.

Parameters
blockInvoked with whether the login is valid and an optional error.
Ghidra address:
0x2547c8

◆ getPreInfoWithCallback:

+ (void) getPreInfoWithCallback: (nullable void(^)(NSInteger flg, NSError *_Nullable error)) callback

Fetches the pre-info display flag, caching it.

Parameters
callbackInvoked with the flag and an optional error.
Ghidra address:
0x256044

◆ postApplicationInstallWithPriority:callback:

+ (void) postApplicationInstallWithPriority: (int) priority
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Posts the application-install registration for a UDID priority.

Parameters
priorityThe UDID priority (0 normal, 1 three-kind retry, 2 pasteboard).
callbackInvoked with an error, or nil on success.
Ghidra address:
0x253fd4

◆ postAppliInstallReportWithAppliList:callback:

+ (void) postAppliInstallReportWithAppliList: (nullable NSArray *) appliList
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Posts an install report, paging the application list in chunks of ten.

Parameters
appliListThe installed application identifiers.
callbackInvoked with an error, or nil on success.
Ghidra address:
0x256588

◆ setSignatureWithParameters:

+ (void) setSignatureWithParameters: (nullable NSMutableDictionary *) parameters

Adds a SHA-256 signature over the sorted, joined parameters to a request dictionary.

Parameters
parametersThe request parameters to sign in place.
Ghidra address:
0x256e64

◆ setTemporaryCacheWithKey:value:expiration:

+ (void) setTemporaryCacheWithKey: (nullable NSString *) key
value: (nullable id) value
expiration: (NSInteger) expiration 

Archives a value with an expiry into NSUserDefaults under a key.

Parameters
keyThe defaults key.
valueThe value to cache.
expirationThe lifetime in seconds, or 0 for one second.
Ghidra address:
0x257324

◆ startLoginWithUserId:withPriority:callback:

+ (void) startLoginWithUserId: (nullable NSString *) userId
withPriority: (int) priority
callback: (nullable void(^)(NSError *_Nullable error)) callback 

Starts a reward login for a user id at a UDID priority.

Parameters
userIdThe user identifier.
priorityThe UDID priority.
callbackInvoked with an error, or nil on success.
Ghidra address:
0x254bac

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