gs2-cdk 1.0.141 → 1.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adReward/model/MobileNotificationMessage.d.ts +10 -0
- package/adReward/model/MobileNotificationMessage.js +28 -0
- package/adReward/model/MobileNotificationMessage.js.map +1 -0
- package/adReward/model/MobileNotificationMessage.ts +47 -0
- package/adReward/model/index.d.ts +3 -1
- package/adReward/model/index.js +3 -1
- package/adReward/model/index.js.map +1 -1
- package/adReward/model/index.ts +4 -0
- package/adReward/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/adReward/model/options/MobileNotificationMessageOptions.js +18 -0
- package/adReward/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/adReward/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/chat/model/MobileNotificationMessage.d.ts +10 -0
- package/chat/model/MobileNotificationMessage.js +28 -0
- package/chat/model/MobileNotificationMessage.js.map +1 -0
- package/chat/model/MobileNotificationMessage.ts +47 -0
- package/chat/model/index.d.ts +3 -1
- package/chat/model/index.js +3 -1
- package/chat/model/index.js.map +1 -1
- package/chat/model/index.ts +4 -0
- package/chat/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/chat/model/options/MobileNotificationMessageOptions.js +18 -0
- package/chat/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/chat/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/distributor/model/MobileNotificationMessage.d.ts +10 -0
- package/distributor/model/MobileNotificationMessage.js +28 -0
- package/distributor/model/MobileNotificationMessage.js.map +1 -0
- package/distributor/model/MobileNotificationMessage.ts +47 -0
- package/distributor/model/index.d.ts +3 -1
- package/distributor/model/index.js +3 -1
- package/distributor/model/index.js.map +1 -1
- package/distributor/model/index.ts +4 -0
- package/distributor/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/distributor/model/options/MobileNotificationMessageOptions.js +18 -0
- package/distributor/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/distributor/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/friend/model/MobileNotificationMessage.d.ts +10 -0
- package/friend/model/MobileNotificationMessage.js +28 -0
- package/friend/model/MobileNotificationMessage.js.map +1 -0
- package/friend/model/MobileNotificationMessage.ts +47 -0
- package/friend/model/index.d.ts +3 -1
- package/friend/model/index.js +3 -1
- package/friend/model/index.js.map +1 -1
- package/friend/model/index.ts +4 -0
- package/friend/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/friend/model/options/MobileNotificationMessageOptions.js +18 -0
- package/friend/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/friend/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/gateway/model/MobileNotificationMessage.d.ts +10 -0
- package/gateway/model/MobileNotificationMessage.js +28 -0
- package/gateway/model/MobileNotificationMessage.js.map +1 -0
- package/gateway/model/MobileNotificationMessage.ts +47 -0
- package/gateway/model/SendNotificationEntry.d.ts +1 -0
- package/gateway/model/SendNotificationEntry.js +6 -1
- package/gateway/model/SendNotificationEntry.js.map +1 -1
- package/gateway/model/SendNotificationEntry.ts +7 -0
- package/gateway/model/index.d.ts +3 -1
- package/gateway/model/index.js +3 -1
- package/gateway/model/index.js.map +1 -1
- package/gateway/model/index.ts +4 -0
- package/gateway/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/gateway/model/options/MobileNotificationMessageOptions.js +18 -0
- package/gateway/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/gateway/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/gateway/model/options/SendNotificationEntryOptions.d.ts +2 -0
- package/gateway/model/options/SendNotificationEntryOptions.js +0 -15
- package/gateway/model/options/SendNotificationEntryOptions.js.map +1 -1
- package/gateway/model/options/SendNotificationEntryOptions.ts +2 -0
- package/guild/model/MobileNotificationMessage.d.ts +10 -0
- package/guild/model/MobileNotificationMessage.js +28 -0
- package/guild/model/MobileNotificationMessage.js.map +1 -0
- package/guild/model/MobileNotificationMessage.ts +47 -0
- package/guild/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/guild/model/options/MobileNotificationMessageOptions.js +18 -0
- package/guild/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/guild/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/inbox/model/MobileNotificationMessage.d.ts +10 -0
- package/inbox/model/MobileNotificationMessage.js +28 -0
- package/inbox/model/MobileNotificationMessage.js.map +1 -0
- package/inbox/model/MobileNotificationMessage.ts +47 -0
- package/inbox/model/index.d.ts +3 -1
- package/inbox/model/index.js +3 -1
- package/inbox/model/index.js.map +1 -1
- package/inbox/model/index.ts +4 -0
- package/inbox/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/inbox/model/options/MobileNotificationMessageOptions.js +18 -0
- package/inbox/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/inbox/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/jobQueue/model/MobileNotificationMessage.d.ts +10 -0
- package/jobQueue/model/MobileNotificationMessage.js +28 -0
- package/jobQueue/model/MobileNotificationMessage.js.map +1 -0
- package/jobQueue/model/MobileNotificationMessage.ts +47 -0
- package/jobQueue/model/index.d.ts +3 -1
- package/jobQueue/model/index.js +3 -1
- package/jobQueue/model/index.js.map +1 -1
- package/jobQueue/model/index.ts +4 -0
- package/jobQueue/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/jobQueue/model/options/MobileNotificationMessageOptions.js +18 -0
- package/jobQueue/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/jobQueue/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/matchmaking/model/MobileNotificationMessage.d.ts +10 -0
- package/matchmaking/model/MobileNotificationMessage.js +28 -0
- package/matchmaking/model/MobileNotificationMessage.js.map +1 -0
- package/matchmaking/model/MobileNotificationMessage.ts +47 -0
- package/matchmaking/model/index.d.ts +3 -1
- package/matchmaking/model/index.js +3 -1
- package/matchmaking/model/index.js.map +1 -1
- package/matchmaking/model/index.ts +4 -0
- package/matchmaking/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/matchmaking/model/options/MobileNotificationMessageOptions.js +18 -0
- package/matchmaking/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/matchmaking/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsDisableOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsEnableOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsDisableOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsEnableOptions.ts +1 -0
- package/mission/model/MobileNotificationMessage.d.ts +10 -0
- package/mission/model/MobileNotificationMessage.js +28 -0
- package/mission/model/MobileNotificationMessage.js.map +1 -0
- package/mission/model/MobileNotificationMessage.ts +47 -0
- package/mission/model/index.d.ts +3 -1
- package/mission/model/index.js +3 -1
- package/mission/model/index.js.map +1 -1
- package/mission/model/index.ts +4 -0
- package/mission/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/mission/model/options/MobileNotificationMessageOptions.js +18 -0
- package/mission/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/mission/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/money2/model/MobileNotificationMessage.d.ts +10 -0
- package/money2/model/MobileNotificationMessage.js +28 -0
- package/money2/model/MobileNotificationMessage.js.map +1 -0
- package/money2/model/MobileNotificationMessage.ts +47 -0
- package/money2/model/index.d.ts +3 -1
- package/money2/model/index.js +3 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +4 -0
- package/money2/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/money2/model/options/MobileNotificationMessageOptions.js +18 -0
- package/money2/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/money2/model/options/MobileNotificationMessageOptions.ts +22 -0
- package/package.json +1 -1
- package/realtime/model/MobileNotificationMessage.d.ts +10 -0
- package/realtime/model/MobileNotificationMessage.js +28 -0
- package/realtime/model/MobileNotificationMessage.js.map +1 -0
- package/realtime/model/MobileNotificationMessage.ts +47 -0
- package/realtime/model/options/MobileNotificationMessageOptions.d.ts +5 -0
- package/realtime/model/options/MobileNotificationMessageOptions.js +18 -0
- package/realtime/model/options/MobileNotificationMessageOptions.js.map +1 -0
- package/realtime/model/options/MobileNotificationMessageOptions.ts +22 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class MobileNotificationMessage {
|
|
4
|
+
constructor(options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
this.locale = null;
|
|
7
|
+
this.title = null;
|
|
8
|
+
this.message = null;
|
|
9
|
+
this.locale = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
this.title = (_b = options === null || options === void 0 ? void 0 : options.title) !== null && _b !== void 0 ? _b : null;
|
|
11
|
+
this.message = (_c = options === null || options === void 0 ? void 0 : options.message) !== null && _c !== void 0 ? _c : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.locale != null) {
|
|
16
|
+
properties["locale"] = this.locale;
|
|
17
|
+
}
|
|
18
|
+
if (this.title != null) {
|
|
19
|
+
properties["title"] = this.title;
|
|
20
|
+
}
|
|
21
|
+
if (this.message != null) {
|
|
22
|
+
properties["message"] = this.message;
|
|
23
|
+
}
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = MobileNotificationMessage;
|
|
28
|
+
//# sourceMappingURL=MobileNotificationMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessage.js","sourceRoot":"","sources":["MobileNotificationMessage.ts"],"names":[],"mappings":";;AAiBA,MAAqB,yBAAyB;IAK1C,YACI,UAAiD,IAAI;;QALxC,WAAM,GAAgB,IAAI,CAAC;QAC3B,UAAK,GAAgB,IAAI,CAAC;QAC1B,YAAO,GAAgB,IAAI,CAAC;QAKzC,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7BD,4CA6BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
17
|
+
|
|
18
|
+
export default class MobileNotificationMessage {
|
|
19
|
+
private readonly locale: string|null = null;
|
|
20
|
+
private readonly title: string|null = null;
|
|
21
|
+
private readonly message: string|null = null;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
options: MobileNotificationMessageOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.locale = options?.locale ?? null;
|
|
27
|
+
this.title = options?.title ?? null;
|
|
28
|
+
this.message = options?.message ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.locale != null) {
|
|
36
|
+
properties["locale"] = this.locale;
|
|
37
|
+
}
|
|
38
|
+
if (this.title != null) {
|
|
39
|
+
properties["title"] = this.title;
|
|
40
|
+
}
|
|
41
|
+
if (this.message != null) {
|
|
42
|
+
properties["message"] = this.message;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return properties;
|
|
46
|
+
}
|
|
47
|
+
}
|
package/friend/model/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
4
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
3
5
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
4
6
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
5
|
-
export { Namespace, NamespaceOptions, TransactionSettingV2, TransactionSettingV2Options, };
|
|
7
|
+
export { Namespace, NamespaceOptions, MobileNotificationMessage, MobileNotificationMessageOptions, TransactionSettingV2, TransactionSettingV2Options, };
|
package/friend/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionSettingV2 = exports.Namespace = void 0;
|
|
3
|
+
exports.TransactionSettingV2 = exports.MobileNotificationMessage = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const MobileNotificationMessage_1 = tslib_1.__importDefault(require("./MobileNotificationMessage"));
|
|
23
|
+
exports.MobileNotificationMessage = MobileNotificationMessage_1.default;
|
|
22
24
|
const TransactionSettingV2_1 = tslib_1.__importDefault(require("./TransactionSettingV2"));
|
|
23
25
|
exports.TransactionSettingV2 = TransactionSettingV2_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AANb,oGAAoE;AAQhE,oCARG,mCAAyB,CAQH;AAN7B,0FAA0D;AAQtD,+BARG,8BAAoB,CAQH"}
|
package/friend/model/index.ts
CHANGED
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
19
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
18
20
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
19
21
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
20
22
|
|
|
21
23
|
export {
|
|
22
24
|
Namespace,
|
|
23
25
|
NamespaceOptions,
|
|
26
|
+
MobileNotificationMessage,
|
|
27
|
+
MobileNotificationMessageOptions,
|
|
24
28
|
TransactionSettingV2,
|
|
25
29
|
TransactionSettingV2Options,
|
|
26
30
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=MobileNotificationMessageOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessageOptions.js","sourceRoot":"","sources":["MobileNotificationMessageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export interface MobileNotificationMessageOptions {
|
|
18
|
+
locale?: string|null;
|
|
19
|
+
title?: string|null;
|
|
20
|
+
message?: string|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
2
|
+
export default class MobileNotificationMessage {
|
|
3
|
+
private readonly locale;
|
|
4
|
+
private readonly title;
|
|
5
|
+
private readonly message;
|
|
6
|
+
constructor(options?: MobileNotificationMessageOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class MobileNotificationMessage {
|
|
4
|
+
constructor(options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
this.locale = null;
|
|
7
|
+
this.title = null;
|
|
8
|
+
this.message = null;
|
|
9
|
+
this.locale = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
this.title = (_b = options === null || options === void 0 ? void 0 : options.title) !== null && _b !== void 0 ? _b : null;
|
|
11
|
+
this.message = (_c = options === null || options === void 0 ? void 0 : options.message) !== null && _c !== void 0 ? _c : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.locale != null) {
|
|
16
|
+
properties["locale"] = this.locale;
|
|
17
|
+
}
|
|
18
|
+
if (this.title != null) {
|
|
19
|
+
properties["title"] = this.title;
|
|
20
|
+
}
|
|
21
|
+
if (this.message != null) {
|
|
22
|
+
properties["message"] = this.message;
|
|
23
|
+
}
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = MobileNotificationMessage;
|
|
28
|
+
//# sourceMappingURL=MobileNotificationMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessage.js","sourceRoot":"","sources":["MobileNotificationMessage.ts"],"names":[],"mappings":";;AAiBA,MAAqB,yBAAyB;IAK1C,YACI,UAAiD,IAAI;;QALxC,WAAM,GAAgB,IAAI,CAAC;QAC3B,UAAK,GAAgB,IAAI,CAAC;QAC1B,YAAO,GAAgB,IAAI,CAAC;QAKzC,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7BD,4CA6BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
17
|
+
|
|
18
|
+
export default class MobileNotificationMessage {
|
|
19
|
+
private readonly locale: string|null = null;
|
|
20
|
+
private readonly title: string|null = null;
|
|
21
|
+
private readonly message: string|null = null;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
options: MobileNotificationMessageOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.locale = options?.locale ?? null;
|
|
27
|
+
this.title = options?.title ?? null;
|
|
28
|
+
this.message = options?.message ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.locale != null) {
|
|
36
|
+
properties["locale"] = this.locale;
|
|
37
|
+
}
|
|
38
|
+
if (this.title != null) {
|
|
39
|
+
properties["title"] = this.title;
|
|
40
|
+
}
|
|
41
|
+
if (this.message != null) {
|
|
42
|
+
properties["message"] = this.message;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return properties;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -6,6 +6,7 @@ export default class SendNotificationEntry {
|
|
|
6
6
|
private readonly payload;
|
|
7
7
|
private readonly enableTransferMobileNotification;
|
|
8
8
|
private readonly sound;
|
|
9
|
+
private readonly mobileNotificationMessages;
|
|
9
10
|
constructor(userId: string, issuer: string, subject: string, payload: string, enableTransferMobileNotification: boolean, options?: SendNotificationEntryOptions | null);
|
|
10
11
|
properties(): {
|
|
11
12
|
[name: string]: any;
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class SendNotificationEntry {
|
|
4
4
|
constructor(userId, issuer, subject, payload, enableTransferMobileNotification, options = null) {
|
|
5
|
-
var _a;
|
|
5
|
+
var _a, _b;
|
|
6
6
|
this.sound = null;
|
|
7
|
+
this.mobileNotificationMessages = null;
|
|
7
8
|
this.userId = userId;
|
|
8
9
|
this.issuer = issuer;
|
|
9
10
|
this.subject = subject;
|
|
10
11
|
this.payload = payload;
|
|
11
12
|
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
12
13
|
this.sound = (_a = options === null || options === void 0 ? void 0 : options.sound) !== null && _a !== void 0 ? _a : null;
|
|
14
|
+
this.mobileNotificationMessages = (_b = options === null || options === void 0 ? void 0 : options.mobileNotificationMessages) !== null && _b !== void 0 ? _b : null;
|
|
13
15
|
}
|
|
14
16
|
properties() {
|
|
15
17
|
let properties = {};
|
|
@@ -31,6 +33,9 @@ class SendNotificationEntry {
|
|
|
31
33
|
if (this.sound != null) {
|
|
32
34
|
properties["sound"] = this.sound;
|
|
33
35
|
}
|
|
36
|
+
if (this.mobileNotificationMessages != null) {
|
|
37
|
+
properties["mobileNotificationMessages"] = this.mobileNotificationMessages.map(v => v.properties());
|
|
38
|
+
}
|
|
34
39
|
return properties;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendNotificationEntry.js","sourceRoot":"","sources":["SendNotificationEntry.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SendNotificationEntry.js","sourceRoot":"","sources":["SendNotificationEntry.ts"],"names":[],"mappings":";;AAkBA,MAAqB,qBAAqB;IAStC,YACI,MAAc,EACd,MAAc,EACd,OAAe,EACf,OAAe,EACf,gCAAyC,EACzC,UAA6C,IAAI;;QATpC,UAAK,GAAgB,IAAI,CAAC;QAC1B,+BAA0B,GAAqC,IAAI,CAAC;QAUjF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,0BAA0B,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B,mCAAI,IAAI,CAAC;IAClF,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,gCAAgC,IAAI,IAAI,EAAE;YAC/C,UAAU,CAAC,kCAAkC,CAAC,GAAG,IAAI,CAAC,gCAAgC,CAAC;SAC1F;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,0BAA0B,IAAI,IAAI,EAAE;YACzC,UAAU,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3F,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvDD,wCAuDC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
16
17
|
import { SendNotificationEntryOptions } from "./options/SendNotificationEntryOptions";
|
|
17
18
|
|
|
18
19
|
export default class SendNotificationEntry {
|
|
@@ -22,6 +23,7 @@ export default class SendNotificationEntry {
|
|
|
22
23
|
private readonly payload: string;
|
|
23
24
|
private readonly enableTransferMobileNotification: boolean;
|
|
24
25
|
private readonly sound: string|null = null;
|
|
26
|
+
private readonly mobileNotificationMessages: MobileNotificationMessage[]|null = null;
|
|
25
27
|
|
|
26
28
|
public constructor(
|
|
27
29
|
userId: string,
|
|
@@ -37,6 +39,7 @@ export default class SendNotificationEntry {
|
|
|
37
39
|
this.payload = payload;
|
|
38
40
|
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
39
41
|
this.sound = options?.sound ?? null;
|
|
42
|
+
this.mobileNotificationMessages = options?.mobileNotificationMessages ?? null;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
public properties(
|
|
@@ -61,6 +64,10 @@ export default class SendNotificationEntry {
|
|
|
61
64
|
if (this.sound != null) {
|
|
62
65
|
properties["sound"] = this.sound;
|
|
63
66
|
}
|
|
67
|
+
if (this.mobileNotificationMessages != null) {
|
|
68
|
+
properties["mobileNotificationMessages"] = this.mobileNotificationMessages.map(v => v.properties(
|
|
69
|
+
));
|
|
70
|
+
}
|
|
64
71
|
|
|
65
72
|
return properties;
|
|
66
73
|
}
|
package/gateway/model/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import Namespace from "./Namespace";
|
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
3
|
import SendNotificationEntry from "./SendNotificationEntry";
|
|
4
4
|
import { SendNotificationEntryOptions } from "./options/SendNotificationEntryOptions";
|
|
5
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
6
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
5
7
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
6
8
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
7
|
-
export { Namespace, NamespaceOptions, SendNotificationEntry, SendNotificationEntryOptions, TransactionSettingV2, TransactionSettingV2Options, };
|
|
9
|
+
export { Namespace, NamespaceOptions, SendNotificationEntry, SendNotificationEntryOptions, MobileNotificationMessage, MobileNotificationMessageOptions, TransactionSettingV2, TransactionSettingV2Options, };
|
package/gateway/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionSettingV2 = exports.SendNotificationEntry = exports.Namespace = void 0;
|
|
3
|
+
exports.TransactionSettingV2 = exports.MobileNotificationMessage = exports.SendNotificationEntry = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,6 +21,8 @@ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
22
|
const SendNotificationEntry_1 = tslib_1.__importDefault(require("./SendNotificationEntry"));
|
|
23
23
|
exports.SendNotificationEntry = SendNotificationEntry_1.default;
|
|
24
|
+
const MobileNotificationMessage_1 = tslib_1.__importDefault(require("./MobileNotificationMessage"));
|
|
25
|
+
exports.MobileNotificationMessage = MobileNotificationMessage_1.default;
|
|
24
26
|
const TransactionSettingV2_1 = tslib_1.__importDefault(require("./TransactionSettingV2"));
|
|
25
27
|
exports.TransactionSettingV2 = TransactionSettingV2_1.default;
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAUhC,oBAVG,mBAAS,CAUH;AARb,4FAA4D;AAUxD,gCAVG,+BAAqB,CAUH;AARzB,oGAAoE;AAUhE,oCAVG,mCAAyB,CAUH;AAR7B,0FAA0D;AAUtD,+BAVG,8BAAoB,CAUH"}
|
package/gateway/model/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ import Namespace from "./Namespace";
|
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
18
|
import SendNotificationEntry from "./SendNotificationEntry";
|
|
19
19
|
import { SendNotificationEntryOptions } from "./options/SendNotificationEntryOptions";
|
|
20
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
21
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
20
22
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
21
23
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
22
24
|
|
|
@@ -25,6 +27,8 @@ export {
|
|
|
25
27
|
NamespaceOptions,
|
|
26
28
|
SendNotificationEntry,
|
|
27
29
|
SendNotificationEntryOptions,
|
|
30
|
+
MobileNotificationMessage,
|
|
31
|
+
MobileNotificationMessageOptions,
|
|
28
32
|
TransactionSettingV2,
|
|
29
33
|
TransactionSettingV2Options,
|
|
30
34
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=MobileNotificationMessageOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessageOptions.js","sourceRoot":"","sources":["MobileNotificationMessageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export interface MobileNotificationMessageOptions {
|
|
18
|
+
locale?: string|null;
|
|
19
|
+
title?: string|null;
|
|
20
|
+
message?: string|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
-
* Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
-
* You may not use this file except in compliance with the License.
|
|
8
|
-
* A copy of the License is located at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
-
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
-
* express or implied. See the License for the specific language governing
|
|
15
|
-
* permissions and limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
//# sourceMappingURL=SendNotificationEntryOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendNotificationEntryOptions.js","sourceRoot":"","sources":["SendNotificationEntryOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SendNotificationEntryOptions.js","sourceRoot":"","sources":["SendNotificationEntryOptions.ts"],"names":[],"mappings":""}
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
16
17
|
|
|
17
18
|
export interface SendNotificationEntryOptions {
|
|
18
19
|
sound?: string|null;
|
|
20
|
+
mobileNotificationMessages?: MobileNotificationMessage[]|null;
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
2
|
+
export default class MobileNotificationMessage {
|
|
3
|
+
private readonly locale;
|
|
4
|
+
private readonly title;
|
|
5
|
+
private readonly message;
|
|
6
|
+
constructor(options?: MobileNotificationMessageOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class MobileNotificationMessage {
|
|
4
|
+
constructor(options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
this.locale = null;
|
|
7
|
+
this.title = null;
|
|
8
|
+
this.message = null;
|
|
9
|
+
this.locale = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
this.title = (_b = options === null || options === void 0 ? void 0 : options.title) !== null && _b !== void 0 ? _b : null;
|
|
11
|
+
this.message = (_c = options === null || options === void 0 ? void 0 : options.message) !== null && _c !== void 0 ? _c : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.locale != null) {
|
|
16
|
+
properties["locale"] = this.locale;
|
|
17
|
+
}
|
|
18
|
+
if (this.title != null) {
|
|
19
|
+
properties["title"] = this.title;
|
|
20
|
+
}
|
|
21
|
+
if (this.message != null) {
|
|
22
|
+
properties["message"] = this.message;
|
|
23
|
+
}
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = MobileNotificationMessage;
|
|
28
|
+
//# sourceMappingURL=MobileNotificationMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessage.js","sourceRoot":"","sources":["MobileNotificationMessage.ts"],"names":[],"mappings":";;AAiBA,MAAqB,yBAAyB;IAK1C,YACI,UAAiD,IAAI;;QALxC,WAAM,GAAgB,IAAI,CAAC;QAC3B,UAAK,GAAgB,IAAI,CAAC;QAC1B,YAAO,GAAgB,IAAI,CAAC;QAKzC,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7BD,4CA6BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
17
|
+
|
|
18
|
+
export default class MobileNotificationMessage {
|
|
19
|
+
private readonly locale: string|null = null;
|
|
20
|
+
private readonly title: string|null = null;
|
|
21
|
+
private readonly message: string|null = null;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
options: MobileNotificationMessageOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.locale = options?.locale ?? null;
|
|
27
|
+
this.title = options?.title ?? null;
|
|
28
|
+
this.message = options?.message ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.locale != null) {
|
|
36
|
+
properties["locale"] = this.locale;
|
|
37
|
+
}
|
|
38
|
+
if (this.title != null) {
|
|
39
|
+
properties["title"] = this.title;
|
|
40
|
+
}
|
|
41
|
+
if (this.message != null) {
|
|
42
|
+
properties["message"] = this.message;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return properties;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=MobileNotificationMessageOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileNotificationMessageOptions.js","sourceRoot":"","sources":["MobileNotificationMessageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|