-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.php
More file actions
77 lines (70 loc) · 2.53 KB
/
Constants.php
File metadata and controls
77 lines (70 loc) · 2.53 KB
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
74
75
76
77
<?php
/*
* This file is a part of Wurrd ClientInterface Plugin.
*
* Copyright 2015 Eyong N <eyongn@scalior.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file Constants used by the Wurrd:ClientInterface plugin.
*/
namespace Wurrd\Mibew\Plugin\ClientInterface;
/**
* Constants
*/
class Constants
{
// Version and installation informatiom
const WCI_VERSION = '1.0.6';
const WCI_API_VERSION = '1006';
const WCI_CONFIG_PREFIX = 'wurrd_ci_';
const WCI_VERSION_KEY = 'wurrd_ci_version';
const WCI_INSTALLATION_ID_KEY = 'wurrd_ci_installation_id';
const WCI_API_VERSION_KEY = 'wurrd_ci_api_version';
const SUPPORTED_MIBEW_PROTOCOL = '1.0';
// API response messages
const MSG_SUCCESS = 'Success';
const MSG_UNKNOWN_ERROR = 'UnknownError';
const MSG_INVALID_ACCESS_TOKEN = 'InvalidAccessToken';
const MSG_EXPIRED_ACCESS_TOKEN = 'ExpiredAccessToken';
const MSG_INVALID_REFRESH_TOKEN = 'InvalidRefreshToken';
const MSG_EXPIRED_REFRESH_TOKEN = 'ExpiredRefreshToken';
const MSG_INVALID_OPERATOR = 'InvalidOperator';
const MSG_INVALID_DEVICE = 'InvalidDevice';
const MSG_INVALID_JSON = 'InvalidJSON';
const MSG_INVALID_CLIENTID = 'InvalidClientID';
const MSG_WRONG_TRHEAD = 'WrongThread';
const MSG_CANNOT_TAKEOVER = 'CannotTakeover';
const MSG_CANNOT_TAKE_THREAD = 'CannotTakeThread';
const MSG_CANNOT_VIEW_THREADS = 'CannotViewThreads';
const MSG_CONFIRM_TAKEOVER = 'ConfirmTakeover';
const MSG_ASSET_NOT_FOUND = 'AssetNotFound';
// Constants for keys used to request access
const CLIENTID_KEY = 'clientid';
const USERNAME_KEY = 'username';
const PASSWORD_KEY = 'password';
const DEVICEUUID_KEY = 'deviceuuid';
const PLATFORM_KEY = 'platform';
const TYPE_KEY = 'type';
const DEVICENAME_KEY = 'devicename';
const ACCESSTOKEN_KEY = 'accesstoken';
const CLIENTAPIVER_KEY = 'clientapiver';
const CLIENTREVISION_KEY = 'clientrevision';
/**
* This class should not be instantiated
*/
private function __construct()
{
}
}