@hiroosy/baileys-lite 0.3.4 → 0.3.5
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/WAProto/index.js +231 -113252
- package/WAProto/parts/ADVDeviceIdentity.part +201 -0
- package/WAProto/parts/ADVEncryptionType.part +6 -0
- package/WAProto/parts/ADVKeyIndexList.part +201 -0
- package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
- package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
- package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
- package/WAProto/parts/AIHomeState.part +405 -0
- package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
- package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
- package/WAProto/parts/AIMetadataOperation.part +83 -0
- package/WAProto/parts/AIQueryFanout.part +133 -0
- package/WAProto/parts/AIRegenerateMetadata.part +112 -0
- package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
- package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
- package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
- package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
- package/WAProto/parts/AIRichResponseImageURL.part +119 -0
- package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
- package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMessage.part +167 -0
- package/WAProto/parts/AIRichResponseMessageType.part +5 -0
- package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
- package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
- package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
- package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
- package/WAProto/parts/AISubscriptionRequestType.part +7 -0
- package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
- package/WAProto/parts/AIThreadInfo.part +316 -0
- package/WAProto/parts/Account.part +138 -0
- package/WAProto/parts/ActionLink.part +100 -0
- package/WAProto/parts/AutoDownloadSettings.part +138 -0
- package/WAProto/parts/AvatarUserSettings.part +100 -0
- package/WAProto/parts/BizAccountLinkInfo.part +210 -0
- package/WAProto/parts/BizAccountPayload.part +105 -0
- package/WAProto/parts/BizIdentityInfo.part +298 -0
- package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
- package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
- package/WAProto/parts/BotAgentMetadata.part +83 -0
- package/WAProto/parts/BotCapabilityMetadata.part +437 -0
- package/WAProto/parts/BotCommandMetadata.part +119 -0
- package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
- package/WAProto/parts/BotFeedbackMessage.part +1366 -0
- package/WAProto/parts/BotGroupMetadata.part +92 -0
- package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
- package/WAProto/parts/BotImagineMetadata.part +134 -0
- package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
- package/WAProto/parts/BotLinkedAccount.part +95 -0
- package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
- package/WAProto/parts/BotMediaMetadata.part +229 -0
- package/WAProto/parts/BotMemoryFact.part +100 -0
- package/WAProto/parts/BotMemoryMetadata.part +141 -0
- package/WAProto/parts/BotMemuMetadata.part +92 -0
- package/WAProto/parts/BotMessageOrigin.part +95 -0
- package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
- package/WAProto/parts/BotMessageSharingInfo.part +297 -0
- package/WAProto/parts/BotMetadata.part +934 -0
- package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
- package/WAProto/parts/BotMetricsMetadata.part +341 -0
- package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
- package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
- package/WAProto/parts/BotModelMetadata.part +167 -0
- package/WAProto/parts/BotPluginMetadata.part +379 -0
- package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
- package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
- package/WAProto/parts/BotPromptSuggestion.part +100 -0
- package/WAProto/parts/BotPromptSuggestions.part +92 -0
- package/WAProto/parts/BotPttPromptMetadata.part +81 -0
- package/WAProto/parts/BotQuotaMetadata.part +241 -0
- package/WAProto/parts/BotReminderMetadata.part +232 -0
- package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
- package/WAProto/parts/BotRenderingMetadata.part +203 -0
- package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
- package/WAProto/parts/BotSessionMetadata.part +137 -0
- package/WAProto/parts/BotSessionSource.part +11 -0
- package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
- package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
- package/WAProto/parts/BotSourcesMetadata.part +322 -0
- package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
- package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
- package/WAProto/parts/CallLogRecord.part +646 -0
- package/WAProto/parts/CertChain.part +392 -0
- package/WAProto/parts/ChatLockSettings.part +102 -0
- package/WAProto/parts/ChatRowOpaqueData.part +712 -0
- package/WAProto/parts/Citation.part +119 -0
- package/WAProto/parts/ClientPairingProps.part +160 -0
- package/WAProto/parts/ClientPayload.part +2892 -0
- package/WAProto/parts/CollectionName.part +9 -0
- package/WAProto/parts/CommentMetadata.part +102 -0
- package/WAProto/parts/CompanionCommitment.part +84 -0
- package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
- package/WAProto/parts/Config.part +136 -0
- package/WAProto/parts/ContextInfo.part +4137 -0
- package/WAProto/parts/Conversation.part +1472 -0
- package/WAProto/parts/DeviceCapabilities.part +670 -0
- package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
- package/WAProto/parts/DeviceListMetadata.part +306 -0
- package/WAProto/parts/DeviceProps.part +982 -0
- package/WAProto/parts/DisappearingMode.part +206 -0
- package/WAProto/parts/EmbeddedContent.part +100 -0
- package/WAProto/parts/EmbeddedMessage.part +102 -0
- package/WAProto/parts/EmbeddedMusic.part +370 -0
- package/WAProto/parts/EncryptedPairingRequest.part +106 -0
- package/WAProto/parts/EphemeralSetting.part +110 -0
- package/WAProto/parts/EventAdditionalMetadata.part +81 -0
- package/WAProto/parts/EventResponse.part +152 -0
- package/WAProto/parts/ExitCode.part +110 -0
- package/WAProto/parts/ExternalBlobReference.part +195 -0
- package/WAProto/parts/Field.part +193 -0
- package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
- package/WAProto/parts/GlobalSettings.part +497 -0
- package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
- package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
- package/WAProto/parts/GroupMention.part +100 -0
- package/WAProto/parts/GroupParticipant.part +142 -0
- package/WAProto/parts/GroupRootKeyShare.part +92 -0
- package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
- package/WAProto/parts/HandshakeMessage.part +815 -0
- package/WAProto/parts/HatchMetadataSync.part +132 -0
- package/WAProto/parts/HistorySync.part +605 -0
- package/WAProto/parts/HistorySyncMsg.part +112 -0
- package/WAProto/parts/HydratedTemplateButton.part +501 -0
- package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
- package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
- package/WAProto/parts/InlineContact.part +157 -0
- package/WAProto/parts/InteractiveAnnotation.part +246 -0
- package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
- package/WAProto/parts/KeepInChat.part +225 -0
- package/WAProto/parts/KeepType.part +6 -0
- package/WAProto/parts/KeyExchangeMessage.part +169 -0
- package/WAProto/parts/KeyId.part +84 -0
- package/WAProto/parts/LIDMigrationMapping.part +149 -0
- package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
- package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
- package/WAProto/parts/LegacyMessage.part +104 -0
- package/WAProto/parts/LimitSharing.part +177 -0
- package/WAProto/parts/LocalizedName.part +119 -0
- package/WAProto/parts/Location.part +119 -0
- package/WAProto/parts/MediaData.part +81 -0
- package/WAProto/parts/MediaDomainInfo.part +120 -0
- package/WAProto/parts/MediaKeyDomain.part +6 -0
- package/WAProto/parts/MediaNotifyMessage.part +132 -0
- package/WAProto/parts/MediaRetryNotification.part +170 -0
- package/WAProto/parts/MediaVisibility.part +6 -0
- package/WAProto/parts/MemberLabel.part +110 -0
- package/WAProto/parts/Message.part +32376 -0
- package/WAProto/parts/MessageAddOn.part +305 -0
- package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
- package/WAProto/parts/MessageAssociation.part +235 -0
- package/WAProto/parts/MessageContextInfo.part +451 -0
- package/WAProto/parts/MessageKey.part +138 -0
- package/WAProto/parts/MessageSecretMessage.part +125 -0
- package/WAProto/parts/Money.part +129 -0
- package/WAProto/parts/MsgOpaqueData.part +1732 -0
- package/WAProto/parts/MsgRowOpaqueData.part +104 -0
- package/WAProto/parts/MutationProps.part +89 -0
- package/WAProto/parts/NoiseCertificate.part +277 -0
- package/WAProto/parts/NotificationMessageInfo.part +152 -0
- package/WAProto/parts/NotificationSettings.part +176 -0
- package/WAProto/parts/PairingRequest.part +128 -0
- package/WAProto/parts/PastParticipant.part +148 -0
- package/WAProto/parts/PastParticipants.part +112 -0
- package/WAProto/parts/PatchDebugData.part +358 -0
- package/WAProto/parts/PaymentBackground.part +460 -0
- package/WAProto/parts/PaymentInfo.part +602 -0
- package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
- package/WAProto/parts/PhotoChange.part +125 -0
- package/WAProto/parts/PinInChat.part +205 -0
- package/WAProto/parts/Point.part +138 -0
- package/WAProto/parts/PollAdditionalMetadata.part +216 -0
- package/WAProto/parts/PollEncValue.part +106 -0
- package/WAProto/parts/PollUpdate.part +202 -0
- package/WAProto/parts/PreKeyRecordStructure.part +125 -0
- package/WAProto/parts/PreKeySignalMessage.part +185 -0
- package/WAProto/parts/PremiumMessageInfo.part +81 -0
- package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
- package/WAProto/parts/PrivacySystemMessage.part +6 -0
- package/WAProto/parts/ProcessedVideo.part +266 -0
- package/WAProto/parts/ProloguePayload.part +105 -0
- package/WAProto/parts/Pushname.part +100 -0
- package/WAProto/parts/QuarantinedMessage.part +103 -0
- package/WAProto/parts/Reaction.part +169 -0
- package/WAProto/parts/RecentEmojiWeight.part +100 -0
- package/WAProto/parts/RecordStructure.part +114 -0
- package/WAProto/parts/Reportable.part +138 -0
- package/WAProto/parts/ReportingTokenInfo.part +84 -0
- package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
- package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
- package/WAProto/parts/SenderKeyMessage.part +122 -0
- package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
- package/WAProto/parts/SenderKeyStateStructure.part +469 -0
- package/WAProto/parts/ServerErrorReceipt.part +81 -0
- package/WAProto/parts/SessionStructure.part +1087 -0
- package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
- package/WAProto/parts/SessionTransparencyType.part +5 -0
- package/WAProto/parts/SignalMessage.part +144 -0
- package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
- package/WAProto/parts/StatusAttribution.part +1235 -0
- package/WAProto/parts/StatusMentionMessage.part +83 -0
- package/WAProto/parts/StatusPSA.part +121 -0
- package/WAProto/parts/StickerMetadata.part +357 -0
- package/WAProto/parts/SyncActionData.part +146 -0
- package/WAProto/parts/SyncActionValue.part +12959 -0
- package/WAProto/parts/SyncdIndex.part +84 -0
- package/WAProto/parts/SyncdMutation.part +121 -0
- package/WAProto/parts/SyncdMutations.part +92 -0
- package/WAProto/parts/SyncdPatch.part +262 -0
- package/WAProto/parts/SyncdRecord.part +125 -0
- package/WAProto/parts/SyncdSnapshot.part +157 -0
- package/WAProto/parts/SyncdValue.part +84 -0
- package/WAProto/parts/SyncdVersion.part +91 -0
- package/WAProto/parts/TapLinkAction.part +100 -0
- package/WAProto/parts/TemplateButton.part +449 -0
- package/WAProto/parts/ThreadID.part +126 -0
- package/WAProto/parts/UrlTrackingMap.part +231 -0
- package/WAProto/parts/UserPassword.part +399 -0
- package/WAProto/parts/UserReceipt.part +221 -0
- package/WAProto/parts/VerifiedNameCertificate.part +318 -0
- package/WAProto/parts/WallpaperSettings.part +119 -0
- package/WAProto/parts/WebFeatures.part +1870 -0
- package/WAProto/parts/WebLinkRenderConfig.part +5 -0
- package/WAProto/parts/WebMessageInfo.part +2851 -0
- package/WAProto/parts/WebNotificationsInfo.part +160 -0
- package/package.json +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function WebNotificationsInfo(p) {
|
|
3
|
+
this.notifyMessages = [];
|
|
4
|
+
if (p)
|
|
5
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
7
|
+
this[ks[i]] = p[ks[i]];
|
|
8
|
+
}
|
|
9
|
+
WebNotificationsInfo.prototype.timestamp = null;
|
|
10
|
+
WebNotificationsInfo.prototype.unreadChats = null;
|
|
11
|
+
WebNotificationsInfo.prototype.notifyMessageCount = null;
|
|
12
|
+
WebNotificationsInfo.prototype.notifyMessages = $util.emptyArray;
|
|
13
|
+
let $oneOfFields;
|
|
14
|
+
Object.defineProperty(WebNotificationsInfo.prototype, "_timestamp", {
|
|
15
|
+
get: $util.oneOfGetter($oneOfFields = ["timestamp"]),
|
|
16
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(WebNotificationsInfo.prototype, "_unreadChats", {
|
|
19
|
+
get: $util.oneOfGetter($oneOfFields = ["unreadChats"]),
|
|
20
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(WebNotificationsInfo.prototype, "_notifyMessageCount", {
|
|
23
|
+
get: $util.oneOfGetter($oneOfFields = ["notifyMessageCount"]),
|
|
24
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25
|
+
});
|
|
26
|
+
WebNotificationsInfo.create = function create(properties) {
|
|
27
|
+
return new WebNotificationsInfo(properties);
|
|
28
|
+
};
|
|
29
|
+
WebNotificationsInfo.encode = function encode(m, w) {
|
|
30
|
+
if (!w)
|
|
31
|
+
w = $Writer.create();
|
|
32
|
+
if (m.timestamp != null && Object.hasOwnProperty.call(m, "timestamp"))
|
|
33
|
+
w.uint32(16).uint64(m.timestamp);
|
|
34
|
+
if (m.unreadChats != null && Object.hasOwnProperty.call(m, "unreadChats"))
|
|
35
|
+
w.uint32(24).uint32(m.unreadChats);
|
|
36
|
+
if (m.notifyMessageCount != null && Object.hasOwnProperty.call(m, "notifyMessageCount"))
|
|
37
|
+
w.uint32(32).uint32(m.notifyMessageCount);
|
|
38
|
+
if (m.notifyMessages != null && m.notifyMessages.length) {
|
|
39
|
+
for (var i = 0; i < m.notifyMessages.length; ++i)
|
|
40
|
+
$root.proto.WebMessageInfo.encode(m.notifyMessages[i], w.uint32(42).fork()).ldelim();
|
|
41
|
+
}
|
|
42
|
+
return w;
|
|
43
|
+
};
|
|
44
|
+
WebNotificationsInfo.decode = function decode(r, l, e, n) {
|
|
45
|
+
if (!(r instanceof $Reader))
|
|
46
|
+
r = $Reader.create(r);
|
|
47
|
+
if (n === undefined)
|
|
48
|
+
n = 0;
|
|
49
|
+
if (n > $Reader.recursionLimit)
|
|
50
|
+
throw Error("maximum nesting depth exceeded");
|
|
51
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.WebNotificationsInfo();
|
|
52
|
+
while (r.pos < c) {
|
|
53
|
+
var t = r.uint32();
|
|
54
|
+
if (t === e)
|
|
55
|
+
break;
|
|
56
|
+
switch (t >>> 3) {
|
|
57
|
+
case 2: {
|
|
58
|
+
m.timestamp = r.uint64();
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case 3: {
|
|
62
|
+
m.unreadChats = r.uint32();
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case 4: {
|
|
66
|
+
m.notifyMessageCount = r.uint32();
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
case 5: {
|
|
70
|
+
if (!(m.notifyMessages && m.notifyMessages.length))
|
|
71
|
+
m.notifyMessages = [];
|
|
72
|
+
m.notifyMessages.push($root.proto.WebMessageInfo.decode(r, r.uint32(), undefined, n + 1));
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
default:
|
|
76
|
+
r.skipType(t & 7, n);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return m;
|
|
81
|
+
};
|
|
82
|
+
WebNotificationsInfo.fromObject = function fromObject(d, n) {
|
|
83
|
+
if (d instanceof $root.proto.WebNotificationsInfo)
|
|
84
|
+
return d;
|
|
85
|
+
if (n === undefined)
|
|
86
|
+
n = 0;
|
|
87
|
+
if (n > $util.recursionLimit)
|
|
88
|
+
throw Error("maximum nesting depth exceeded");
|
|
89
|
+
var m = new $root.proto.WebNotificationsInfo();
|
|
90
|
+
if (d.timestamp != null) {
|
|
91
|
+
if ($util.Long)
|
|
92
|
+
(m.timestamp = $util.Long.fromValue(d.timestamp)).unsigned = true;
|
|
93
|
+
else if (typeof d.timestamp === "string")
|
|
94
|
+
m.timestamp = parseInt(d.timestamp, 10);
|
|
95
|
+
else if (typeof d.timestamp === "number")
|
|
96
|
+
m.timestamp = d.timestamp;
|
|
97
|
+
else if (typeof d.timestamp === "object")
|
|
98
|
+
m.timestamp = new $util.LongBits(d.timestamp.low >>> 0, d.timestamp.high >>> 0).toNumber(true);
|
|
99
|
+
}
|
|
100
|
+
if (d.unreadChats != null) {
|
|
101
|
+
m.unreadChats = d.unreadChats >>> 0;
|
|
102
|
+
}
|
|
103
|
+
if (d.notifyMessageCount != null) {
|
|
104
|
+
m.notifyMessageCount = d.notifyMessageCount >>> 0;
|
|
105
|
+
}
|
|
106
|
+
if (d.notifyMessages) {
|
|
107
|
+
if (!Array.isArray(d.notifyMessages))
|
|
108
|
+
throw TypeError(".proto.WebNotificationsInfo.notifyMessages: array expected");
|
|
109
|
+
m.notifyMessages = [];
|
|
110
|
+
for (var i = 0; i < d.notifyMessages.length; ++i) {
|
|
111
|
+
if (typeof d.notifyMessages[i] !== "object")
|
|
112
|
+
throw TypeError(".proto.WebNotificationsInfo.notifyMessages: object expected");
|
|
113
|
+
m.notifyMessages[i] = $root.proto.WebMessageInfo.fromObject(d.notifyMessages[i], n + 1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return m;
|
|
117
|
+
};
|
|
118
|
+
WebNotificationsInfo.toObject = function toObject(m, o) {
|
|
119
|
+
if (!o)
|
|
120
|
+
o = {};
|
|
121
|
+
var d = {};
|
|
122
|
+
if (o.arrays || o.defaults) {
|
|
123
|
+
d.notifyMessages = [];
|
|
124
|
+
}
|
|
125
|
+
if (m.timestamp != null && m.hasOwnProperty("timestamp")) {
|
|
126
|
+
if (typeof m.timestamp === "number")
|
|
127
|
+
d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
|
|
128
|
+
else
|
|
129
|
+
d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
|
|
130
|
+
if (o.oneofs)
|
|
131
|
+
d._timestamp = "timestamp";
|
|
132
|
+
}
|
|
133
|
+
if (m.unreadChats != null && m.hasOwnProperty("unreadChats")) {
|
|
134
|
+
d.unreadChats = m.unreadChats;
|
|
135
|
+
if (o.oneofs)
|
|
136
|
+
d._unreadChats = "unreadChats";
|
|
137
|
+
}
|
|
138
|
+
if (m.notifyMessageCount != null && m.hasOwnProperty("notifyMessageCount")) {
|
|
139
|
+
d.notifyMessageCount = m.notifyMessageCount;
|
|
140
|
+
if (o.oneofs)
|
|
141
|
+
d._notifyMessageCount = "notifyMessageCount";
|
|
142
|
+
}
|
|
143
|
+
if (m.notifyMessages && m.notifyMessages.length) {
|
|
144
|
+
d.notifyMessages = [];
|
|
145
|
+
for (var j = 0; j < m.notifyMessages.length; ++j) {
|
|
146
|
+
d.notifyMessages[j] = $root.proto.WebMessageInfo.toObject(m.notifyMessages[j], o);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return d;
|
|
150
|
+
};
|
|
151
|
+
WebNotificationsInfo.prototype.toJSON = function toJSON() {
|
|
152
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
153
|
+
};
|
|
154
|
+
WebNotificationsInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
155
|
+
if (typeUrlPrefix === undefined) {
|
|
156
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
157
|
+
}
|
|
158
|
+
return typeUrlPrefix + "/proto.WebNotificationsInfo";
|
|
159
|
+
};
|
|
160
|
+
return WebNotificationsInfo;
|