-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResultCodes.php
73 lines (60 loc) · 2.56 KB
/
ResultCodes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php /** @noinspection PhpUnused */
namespace HMS\AnalyticsKit;
/**
* Class HMS AnalyticsKit Result Codes
* all HTTP 400.
* @link https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/android-api-export-personal-data-0000001050987229#section53004114522 Result Codes
* @author Martin Zeitler
*/
class ResultCodes {
/**
* 0 - Request successful.
* Check and correct the parameter value.
*/
public const REQUEST_SUCCESSFUL = 0;
/**
* 10020 - Invalid parameter.
* Check and correct the parameter value.
*/
public const INVALID_PARAMETER = 10020;
/**
* 10008 - Requests are too frequent.
* Display a message prompting the user to reduce the frequency
* of requesting data export and asking the user to try again later.
*/
public const REQUESTS_TOO_FREQUENT = 10008;
/**
* 10030 - The data cannot be exported because it has been deleted at the request of the user.
* Display a message indicating that the data has been deleted.
*/
public const DATA_ALREADY_DELETED_BY_USER = 10030;
/**
* 110031 - The data cannot be exported because the interval between this data export request and the previous one is less than two months.
* Display a message notifying the user that the interval between two consecutive data export requests must be two months at least.
*/
public const DATA_EXPORT_REQUEST_INTERVAL = 110031;
/**
* 10032 - The data cannot be deleted because it is being exported.
* Display a message indicating that the data is being exported and asking the user to try again after the data export is complete.
*/
public const DATA_CURRENTLY_BEING_EXPORTED = 10032;
/**
* 10033 - The data has been deleted.
* Display a message indicating that the data has been deleted.
*/
public const DATA_HAS_BEEN_DELETED = 10033;
/**
* 10009 - The number of ongoing export tasks of an app reaches 3, which is the upper limit.
* Try again after some or all of the ongoing tasks are complete.
*/
public const TOO_MANY_ONGOING_EXPORT_TASKS = 10020;
/**
* 19910 - Authentication request timed out.
* Internal error of the authentication server.
* Try again later.
*/
public const AUTHENTICATION_REQUEST_TIMED_OUT = 10020;
// Error 10031: user data exported in two month
// Error 10002: Request frequency exceeds system limit!
// Error 10020: importItem4DataCollection.importItem.itemSet: must not be null, importItem4DataCollection.importItem.dataType: must not be null
}