Best JavaScript code snippet using wpt
proto.js
Source:proto.js
1/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/2"use strict";3var $protobuf = require("protobufjs/light");4$protobuf.util.Long = require('long');5var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $protobuf.Root()))6.addJSON({7 beanfun: {8 nested: {9 chat: {10 nested: {11 v1: {12 options: {13 go_package: "./;beanfun_chat_v1"14 },15 nested: {16 GraphicType: {17 values: {18 GRAPHIC_TYPE_UNKNOWN: 0,19 GRAPHIC_TYPE_A: 1,20 GRAPHIC_TYPE_B: 2,21 GRAPHIC_TYPE_C: 3,22 GRAPHIC_TYPE_D: 4,23 GRAPHIC_TYPE_E: 5,24 GRAPHIC_TYPE_F: 6,25 GRAPHIC_TYPE_G: 726 }27 },28 OptionType: {29 values: {30 OPTION_TYPE_UNKNOWN: 0,31 OPTION_TYPE_WEB_PAGE: 1,32 OPTION_TYPE_APP_LINK: 2,33 OPTION_TYPE_H5_PAGE: 3,34 OPTION_TYPE_EXTENSION_PAGE: 4,35 OPTION_TYPE_POSTBACK: 5,36 OPTION_TYPE_APP_LOG: 637 }38 },39 ChatEventType: {40 values: {41 CHAT_EVENT_TYPE_UNKNOWN: 0,42 CHAT_EVENT_TYPE_CREATED: 1,43 CHAT_EVENT_TYPE_UPDATED: 2,44 CHAT_EVENT_TYPE_REMOVED: 3,45 CHAT_EVENT_TYPE_DISMISSED: 446 }47 },48 ChatStatus: {49 values: {50 CHAT_STATUS_UNKNOWN: 0,51 CHAT_STATUS_ACTIVE: 1,52 CHAT_STATUS_INACTIVE: 2,53 CHAT_STATUS_BLOCKED: 354 }55 },56 PinnedMessageType: {57 values: {58 PINNED_MESSAGE_TYPE_UNKNOWN: 0,59 PINNED_MESSAGE_TYPE_ANNOUNCEMENT: 1,60 PINNED_MESSAGE_TYPE_ACTIVITY: 261 }62 },63 PinnedMessageEventType: {64 values: {65 PINNED_MESSAGE_EVENT_TYPE_UNKNOWN: 0,66 PINNED_MESSAGE_EVENT_TYPE_ADDED: 1,67 PINNED_MESSAGE_EVENT_TYPE_REMOVED: 2,68 PINNED_MESSAGE_EVENT_TYPE_SELF_REMOVED: 369 }70 },71 UserPreferenceEventType: {72 values: {73 USER_PREFERENCE_EVENT_TYPE_UNKNOWN: 0,74 USER_PREFERENCE_EVENT_TYPE_MUTE_ADDED: 1,75 USER_PREFERENCE_EVENT_TYPE_MUTE_REMOVED: 2,76 USER_PREFERENCE_EVENT_TYPE_AD_BLOCK_ADDED: 3,77 USER_PREFERENCE_EVENT_TYPE_AD_BLOCK_REMOVED: 4,78 USER_PREFERENCE_EVENT_TYPE_PINNED_ADDED: 5,79 USER_PREFERENCE_EVENT_TYPE_PINNED_REMOVED: 680 }81 },82 ChatRole: {83 values: {84 UNKNOWN_CHAT_ROLE: 0,85 OWNER: 1,86 MODERATOR: 2,87 NORMAL_PARTICIPANT: 388 }89 },90 ChatType: {91 values: {92 UNKNOWN_CHAT_TYPE: 0,93 GROUP: 1,94 MATCHING: 2,95 ASSISTANT: 3,96 FUN_CHAT: 4,97 GAME: 5,98 PAIR: 6,99 PERIOD: 7100 }101 },102 MessageEventType: {103 values: {104 MESSAGE_EVENT_TYPE_UNKOWN: 0,105 MESSAGE_EVENT_TYPE_RECALLED: 1,106 MESSAGE_EVENT_TYPE_EXPIRED: 2,107 MESSAGE_EVENT_TYPE_REMOVED: 3108 }109 },110 MimeType: {111 values: {112 UNKNOWN_MIME_TYPE: 0,113 TEXT_PLAIN: 1,114 TEXT_CSV: 2,115 TEXT_XML: 3,116 TEXT_HTML: 4,117 TEXT_RTF: 5,118 IMAGE_PNG: 10,119 IMAGE_JPEG: 11,120 IMAGE_GIF: 12,121 IMAGE_APNG: 13,122 IMAGE_SVG: 14,123 IMAGE_HEIC: 15,124 IMAGE_HEIF: 16,125 IMAGE_PSD: 17,126 IMAGE_WMF: 18,127 VIDEO_MPEG: 20,128 VIDEO_MP4: 21,129 VIDEO_OGG: 22,130 VIDEO_QUICKTIME: 23,131 VIDEO_WEBM: 24,132 VIDEO_AVI: 25,133 VIDEO_X_MS_WMV: 26,134 VIDEO_X_FLV: 27,135 AUDIO_MP4: 40,136 AUDIO_MPEG: 41,137 AUDIO_WAV: 42,138 AUDIO_WEBM: 43,139 AUDIO_M4A: 44,140 APPLICATION_KEYNOTE: 56,141 APPLICATION_NUMBERS: 57,142 APPLICATION_PAGES: 58,143 APPLICATION_POSTSCRIPT: 59,144 APPLICATION_PDF: 60,145 APPLICATION_ZIP: 61,146 APPLICATION_MS_WORD: 62,147 APPLICATION_OPENXML_DOCUMENT_WORD: 63,148 APPLICATION_MS_POWERPOINT: 64,149 APPLICATION_OPENXML_POWERPOINT: 65,150 APPLICATION_MS_EXCEL: 66,151 APPLICATION_OPENXML_SHEET_EXCEL: 67,152 APPLICATION_DOCUMENT_MS_WORD: 68,153 APPLICATION_TEMPLATE_MS_WORD: 69,154 APPLICATION_OPENXML_TEMPLATE_WORD: 70,155 APPLICATION_XPS_MS_WORD: 71,156 APPLICATION_SHEET_MS_EXCEL: 72,157 APPLICATION_TEMPLATE_MS_EXCEL: 73,158 APPLICATION_OPENXML_TEMPLATE_EXCEL: 74,159 APPLICATION_TEMPLATE_MS_POWERPOINT: 75,160 APPLICATION_OPENXML_TEMPLATE_POWERPOINT: 76,161 APPLICATION_MS_OFFICE_THEME_POWERPOINT: 77,162 APPLICATION_7Z: 78,163 APPLICATION_X_BEANFUN_TEXT: 80,164 APPLICATION_X_BEANFUN_INTERACTIVE: 81,165 APPLICATION_X_BEANFUN_POSTBACK: 82,166 APPLICATION_X_BEANFUN_STICKERS: 83,167 APPLICATION_X_BEANFUN_CALLING: 84,168 APPLICATION_X_BEANFUN_LOCATION: 85,169 APPLICATION_X_BEANFUN_CHEST: 86,170 APPLICATION_X_BEANFUN_GRAPHIC: 87,171 APPLICATION_X_BEANFUN_GIFT: 88,172 APPLICATION_X_BEANFUN_STICKERS_COMBO: 89,173 APPLICATION_X_BEANFUN_TEXT_CONTENT: 90,174 APPLICATION_X_BEANFUN_ALBUM_CREATED: 100,175 APPLICATION_X_BEANFUN_ALBUM_DELETED: 101,176 APPLICATION_X_BEANFUN_ALBUM_RENAMED: 102,177 APPLICATION_X_BEANFUN_PHOTOS_UPLOADED: 103,178 APPLICATION_X_BEANFUN_PHOTOS_DELETED: 104,179 APPLICATION_X_BEANFUN_MESSAGE_RECALLED: 105,180 APPLICATION_X_BEANFUN_CHAT_ROLE_CHANGED: 106,181 APPLICATION_X_BEANFUN_CHAT_LEFT: 107,182 APPLICATION_X_BEANFUN_CHAT_UPDATED: 108,183 APPLICATION_X_BEANFUN_CHAT_JOINED: 109,184 APPLICATION_X_BEANFUN_CHAT_OWNER_CHANGED: 110185 }186 },187 PhotosOrderType: {188 values: {189 PHOTOS_ORDER_TYPE_UNKNOWN: 0,190 PHOTOS_ORDER_TYPE_UPLOAD_TIME: 1,191 PHOTOS_ORDER_TYPE_PHOTO_TIME: 2192 }193 },194 FriendStatus: {195 values: {196 FRIEND_STATUS_TYPE_UNKNOWN: 0,197 FRIEND_STATUS_TYPE_INVITING: 1,198 FRIEND_STATUS_TYPE_FRIEND: 2,199 FRIEND_STATUS_TYPE_BLOCKED: 3200 }201 },202 FriendType: {203 values: {204 FRIEND_TYPE_UNKNOWN: 0,205 FRIEND_TYPE_PHONE: 1,206 FRIEND_TYPE_EMAIL: 2,207 FRIEND_TYPE_CUSTOM_ID: 3,208 FRIEND_TYPE_QR_CODE: 4,209 FRIEND_TYPE_NEAR_BY: 5,210 FRIEND_TYPE_CONFIRM: 6,211 FRIEND_TYPE_PROFILE: 7,212 FRIEND_TYPE_APPLIED: 8213 }214 },215 NotificationEventType: {216 values: {217 NOTIFICATION_EVENT_TYPE_UNKNOWN: 0,218 NOTIFICATION_EVENT_TYPE_CHAT_MESSAGE: 1,219 NOTIFICATION_EVENT_TYPE_CHAT_APPLICANTS_UPDATED: 2,220 NOTIFICATION_EVENT_TYPE_CHAT_INVITATION_UPDATED: 3,221 NOTIFICATION_EVENT_TYPE_ALBUM_CREATED: 4,222 NOTIFICATION_EVENT_TYPE_ALBUM_UPDATED: 5,223 NOTIFICATION_EVENT_TYPE_ALBUM_DELETED: 6,224 NOTIFICATION_EVENT_TYPE_PHOTO_UPLOADED: 7,225 NOTIFICATION_EVENT_TYPE_PHOTO_DELETED: 8,226 NOTIFICATION_EVENT_TYPE_CALL_BF_NATIVE: 9,227 NOTIFICATION_EVENT_TYPE_CHAT_WHISPER_MESSAGE: 10,228 NOTIFICATION_EVENT_TYPE_CHAT_PERIOD_ON_AIR: 11229 }230 },231 SuspectReasonType: {232 values: {233 SUSPECT_REASON_TYPE_UNKNOWN: 0,234 SUSPECT_REASON_TYPE_ADVERTISE_ROBOT: 1,235 SUSPECT_REASON_TYPE_NUDITY_OR_SEXUAL_ACTIVITY: 2,236 SUSPECT_REASON_TYPE_SCAM_OR_FRAUD: 3,237 SUSPECT_REASON_TYPE_CUSTOM_REASON: 4238 }239 },240 CallType: {241 values: {242 CALL_TYPE_UNKNOWN: 0,243 CALL_TYPE_P2P: 1,244 CALL_TYPE_CONFERENCE_CALL: 2245 }246 },247 CallState: {248 values: {249 CALL_STATE_UNKNOWN: 0,250 CALL_STATE_CALL_ENDED: 1,251 CALL_STATE_UNANSWERED: 2,252 CALL_STATE_CANCELLED: 3,253 CALL_STATE_CALL_BF_NATIVE: 4,254 CALL_STATE_UNANSWERED_AND_NOT_ALLOW_VOICE_CALLS: 5,255 CALL_STATE_CANCELLED_AND_NOT_ALLOW_VOICE_CALLS: 6,256 CALL_STATE_REJECTED: 7257 }258 },259 LogLevel: {260 values: {261 LOG_LEVEL_UNKNOWN: 0,262 LOG_LEVEL_TRACE: 1,263 LOG_LEVEL_DEBUG: 2,264 LOG_LEVEL_INFO: 3,265 LOG_LEVEL_WARN: 4,266 LOG_LEVEL_ERROR: 5,267 LOG_LEVEL_FATAL: 6268 }269 },270 AppLogScope: {271 values: {272 APP_LOG_SCOPE_UNKNOWN: 0,273 APP_LOG_SCOPE_CREATE_OR_LOGIN: 1,274 APP_LOG_SCOPE_GAME_LOGIN: 2,275 APP_LOG_SCOPE_GAMAPAY: 3,276 APP_LOG_SCOPE_H5_LOGIN: 4277 }278 },279 TextContentType: {280 values: {281 TEXT_CONTENT_TYPE_UNKNOWN: 0,282 TEXT_CONTENT_TYPE_TEXT: 1,283 TEXT_CONTENT_TYPE_MENTION: 2,284 TEXT_CONTENT_TYPE_URI: 3,285 TEXT_CONTENT_TYPE_PHONE: 4,286 TEXT_CONTENT_TYPE_EMAIL: 5287 }288 },289 ReplyMessage: {290 fields: {291 messageId: {292 type: "int64",293 id: 1,294 options: {295 jstype: "JS_STRING"296 }297 },298 senderId: {299 type: "int64",300 id: 2,301 options: {302 jstype: "JS_STRING"303 }304 },305 mimeType: {306 type: "MimeType",307 id: 3308 },309 senderNickname: {310 type: "string",311 id: 4312 },313 senderAvatar: {314 type: "string",315 id: 5316 },317 content: {318 type: "string",319 id: 6320 },321 metadata: {322 type: "MimeTypeMetadata",323 id: 8324 }325 }326 },327 AlbumPhoto: {328 fields: {329 id: {330 type: "int64",331 id: 1,332 options: {333 jstype: "JS_STRING"334 }335 },336 width: {337 type: "int32",338 id: 2339 },340 height: {341 type: "int32",342 id: 3343 },344 uri: {345 type: "string",346 id: 4347 },348 thumbnailUri: {349 type: "string",350 id: 5351 },352 size: {353 type: "int64",354 id: 6,355 options: {356 jstype: "JS_STRING"357 }358 }359 }360 },361 TextPlainMetadata: {362 fields: {363 size: {364 type: "int64",365 id: 1,366 options: {367 jstype: "JS_STRING"368 }369 }370 }371 },372 ImageMetadata: {373 fields: {374 width: {375 type: "int32",376 id: 1377 },378 height: {379 type: "int32",380 id: 2381 },382 thumbnailUri: {383 type: "string",384 id: 3385 },386 size: {387 type: "int64",388 id: 4,389 options: {390 jstype: "JS_STRING"391 }392 }393 }394 },395 VideoMetadata: {396 fields: {397 width: {398 type: "int32",399 id: 1400 },401 height: {402 type: "int32",403 id: 2404 },405 thumbnailUri: {406 type: "string",407 id: 3408 },409 duration: {410 type: "int32",411 id: 4412 },413 size: {414 type: "int64",415 id: 5,416 options: {417 jstype: "JS_STRING"418 }419 }420 }421 },422 AudioMetadata: {423 fields: {424 duration: {425 type: "int32",426 id: 1427 }428 }429 },430 FileMetadata: {431 fields: {432 size: {433 type: "int64",434 id: 1,435 options: {436 jstype: "JS_STRING"437 }438 }439 }440 },441 ApplicationXBeanfunTextMetadata: {442 fields: {443 mention: {444 rule: "repeated",445 type: "AliasInfo",446 id: 3447 }448 }449 },450 ApplicationXBeanfunTextContentMetadata: {451 fields: {452 items: {453 rule: "repeated",454 type: "ApplicationXBeanfunTextContentItem",455 id: 1456 }457 }458 },459 ApplicationXBeanfunTextContentItem: {460 fields: {461 contentType: {462 type: "TextContentType",463 id: 1464 },465 metadata: {466 type: "TextContentMetadata",467 id: 2468 }469 }470 },471 TextContentMetadata: {472 oneofs: {473 metadataOneof: {474 oneof: [475 "text",476 "mention",477 "uri",478 "phone",479 "email"480 ]481 }482 },483 fields: {484 text: {485 type: "string",486 id: 1487 },488 mention: {489 type: "AliasInfo",490 id: 2491 },492 uri: {493 type: "URI",494 id: 3495 },496 phone: {497 type: "string",498 id: 4499 },500 email: {501 type: "string",502 id: 5503 }504 },505 nested: {506 URI: {507 fields: {508 uri: {509 type: "string",510 id: 1511 },512 title: {513 type: "string",514 id: 2515 },516 description: {517 type: "string",518 id: 3519 },520 imageUri: {521 type: "string",522 id: 4523 }524 }525 }526 }527 },528 AppLogInfo: {529 fields: {530 level: {531 type: "LogLevel",532 id: 1533 },534 openConsole: {535 type: "bool",536 id: 2537 },538 scope: {539 type: "AppLogScope",540 id: 3541 }542 }543 },544 Option: {545 fields: {546 optKey: {547 type: "string",548 id: 1549 },550 optType: {551 type: "OptionType",552 id: 2553 },554 description: {555 type: "string",556 id: 3557 },558 uri: {559 type: "string",560 id: 4561 },562 tags: {563 rule: "repeated",564 type: "int32",565 id: 5566 },567 proxyServiceId: {568 type: "string",569 id: 6570 },571 title: {572 type: "string",573 id: 7574 },575 postbackData: {576 type: "string",577 id: 8578 },579 appLogInfo: {580 type: "AppLogInfo",581 id: 9582 }583 }584 },585 ApplicationXBeanfunInteractiveMetadata: {586 fields: {587 serviceId: {588 type: "string",589 id: 2590 },591 imageInfo: {592 type: "ImageInfo",593 id: 3594 },595 forwardable: {596 type: "bool",597 id: 4598 },599 once: {600 type: "bool",601 id: 5602 },603 expiredHint: {604 type: "string",605 id: 7606 },607 options: {608 rule: "repeated",609 type: "Option",610 id: 8611 },612 interactiveKey: {613 type: "string",614 id: 11615 },616 messageTrackId: {617 type: "int64",618 id: 12,619 options: {620 jstype: "JS_STRING"621 }622 },623 sessionId: {624 type: "string",625 id: 13626 },627 title: {628 type: "string",629 id: 14630 }631 }632 },633 ApplicationXBeanfunGraphicMetadata: {634 fields: {635 serviceId: {636 type: "string",637 id: 2638 },639 imageInfo: {640 type: "ImageInfo",641 id: 3642 },643 graphicType: {644 type: "GraphicType",645 id: 7646 },647 options: {648 rule: "repeated",649 type: "Option",650 id: 8651 },652 interactiveKey: {653 type: "string",654 id: 11655 },656 messageTrackId: {657 type: "int64",658 id: 12,659 options: {660 jstype: "JS_STRING"661 }662 }663 }664 },665 ApplicationXBeanfunGiftMetadata: {666 fields: {667 linkUri: {668 type: "string",669 id: 2670 },671 linkDescription: {672 type: "string",673 id: 3674 },675 imageType: {676 type: "MimeType",677 id: 4678 },679 imageUri: {680 type: "string",681 id: 5682 }683 }684 },685 ApplicationXBeanfunPostbackMetadata: {686 fields: {687 parentMessageId: {688 type: "int64",689 id: 1,690 options: {691 jstype: "JS_STRING"692 }693 },694 selectedOptionKey: {695 type: "string",696 id: 2697 },698 convertedPostbackData: {699 type: "string",700 id: 3701 }702 }703 },704 ImageInfo: {705 fields: {706 mimeType: {707 type: "MimeType",708 id: 1709 },710 uri: {711 type: "string",712 id: 2713 },714 thumbnailUri: {715 type: "string",716 id: 3717 }718 }719 },720 ApplicationXBeanfunChestMetadata: {721 fields: {722 title: {723 type: "string",724 id: 1725 },726 expiredHint: {727 type: "string",728 id: 4729 },730 coverImageInfo: {731 type: "ImageInfo",732 id: 6733 },734 sealedImageInfo: {735 type: "ImageInfo",736 id: 7737 },738 unsealedImageInfo: {739 type: "ImageInfo",740 id: 8741 },742 description: {743 type: "string",744 id: 9745 },746 pageTitle: {747 type: "string",748 id: 10749 },750 pageUri: {751 type: "string",752 id: 11753 },754 messageTrackId: {755 type: "int64",756 id: 12,757 options: {758 jstype: "JS_STRING"759 }760 }761 }762 },763 Sticker: {764 fields: {765 stickerPkgId: {766 type: "string",767 id: 1768 },769 stickerId: {770 type: "string",771 id: 2772 },773 stickerFormat: {774 type: "string",775 id: 3776 },777 stickerSrcUri: {778 type: "string",779 id: 4780 },781 stickerHdUri: {782 type: "string",783 id: 5784 },785 stickerThumbUri: {786 type: "string",787 id: 6788 },789 width: {790 type: "int32",791 id: 7792 },793 height: {794 type: "int32",795 id: 8796 }797 }798 },799 ApplicationXBeanfunStickersMetadata: {800 fields: {801 sticker: {802 type: "Sticker",803 id: 1804 }805 }806 },807 ApplicationXBeanfunStickersComboMetadata: {808 fields: {809 stickers: {810 rule: "repeated",811 type: "Sticker",812 id: 1813 },814 comboId: {815 type: "string",816 id: 2817 },818 title: {819 type: "string",820 id: 3821 },822 width: {823 type: "int32",824 id: 4825 },826 height: {827 type: "int32",828 id: 5829 },830 imageUri: {831 type: "string",832 id: 6833 }834 }835 },836 ApplicationXBeanfunCallingMetadata: {837 fields: {838 callType: {839 type: "CallType",840 id: 1841 },842 callState: {843 type: "CallState",844 id: 2845 },846 callerNickname: {847 type: "string",848 id: 3849 },850 duration: {851 type: "int32",852 id: 4853 }854 }855 },856 ApplicationXBeanfunLocationMetadata: {857 fields: {858 longitude: {859 type: "double",860 id: 1861 },862 latitude: {863 type: "double",864 id: 2865 }866 }867 },868 ApplicationXBeanfunAlbumCreatedMetadata: {869 fields: {870 albumId: {871 type: "int32",872 id: 1873 },874 albumName: {875 type: "string",876 id: 2877 }878 }879 },880 ApplicationXBeanfunAlbumDeletedMetadata: {881 fields: {882 albumId: {883 type: "int32",884 id: 1885 },886 albumName: {887 type: "string",888 id: 2889 }890 }891 },892 ApplicationXBeanfunAlbumRenamedMetadata: {893 fields: {894 albumId: {895 type: "int32",896 id: 1897 },898 albumName: {899 type: "string",900 id: 2901 }902 }903 },904 ApplicationXBeanfunPhotosUploadedMetadata: {905 fields: {906 albumId: {907 type: "int32",908 id: 1909 },910 albumName: {911 type: "string",912 id: 2913 },914 thumbnailUri: {915 type: "string",916 id: 3917 },918 photosAmount: {919 type: "int32",920 id: 4921 }922 }923 },924 ApplicationXBeanfunPhotosDeletedMetadata: {925 fields: {926 albumId: {927 type: "int32",928 id: 1929 },930 albumName: {931 type: "string",932 id: 2933 },934 photosAmount: {935 type: "int32",936 id: 4937 }938 }939 },940 ApplicationXBeanfunMessageRecalledMetadata: {941 fields: {942 recaller: {943 type: "AliasInfo",944 id: 1945 }946 }947 },948 ApplicationXBeanfunChatLeftMetadata: {949 fields: {950 alias: {951 type: "AliasInfo",952 id: 3953 }954 }955 },956 ApplicationXBeanfunChatJoinedMetadata: {957 fields: {958 aliases: {959 rule: "repeated",960 type: "AliasInfo",961 id: 2962 }963 }964 },965 ApplicationXBeanfunChatRoleChangedMetadata: {966 fields: {967 moderators: {968 rule: "repeated",969 type: "int64",970 id: 1,971 options: {972 jstype: "JS_STRING"973 }974 },975 normal: {976 rule: "repeated",977 type: "int64",978 id: 2,979 options: {980 jstype: "JS_STRING"981 }982 }983 }984 },985 ApplicationXBeanfunChatOwnerChangedMetadata: {986 fields: {987 owner: {988 type: "AliasInfo",989 id: 1990 }991 }992 },993 MimeTypeMetadata: {994 oneofs: {995 metadataOneof: {996 oneof: [997 "textPlainMetadata",998 "imageMetadata",999 "videoMetadata",1000 "audioMetadata",1001 "fileMetadata",1002 "applicationXBeanfunTextMetadata",1003 "applicationXBeanfunInteractiveMetadata",1004 "applicationXBeanfunPostbackMetadata",1005 "applicationXBeanfunStickersMetadata",1006 "applicationXBeanfunCallingMetadata",1007 "applicationXBeanfunLocationMetadata",1008 "applicationXBeanfunChestMetadata",1009 "applicationXBeanfunGraphicMetadata",1010 "applicationXBeanfunGiftMetadata",1011 "applicationXBeanfunStickersComboMetadata",1012 "applicationXBeanfunTextContentMetadata",1013 "applicationXBeanfunAlbumCreatedMetadata",1014 "applicationXBeanfunAlbumDeletedMetadata",1015 "applicationXBeanfunAlbumRenamedMetadata",1016 "applicationXBeanfunPhotosUploadedMetadata",1017 "applicationXBeanfunPhotosDeletedMetadata",1018 "applicationXBeanfunMessageRecalledMetadata",1019 "applicationXBeanfunChatRoleChangedMetadata",1020 "applicationXBeanfunChatLeftMetadata",1021 "applicationXBeanfunChatJoinedMetadata",1022 "applicationXBeanfunChatOwnerChangedMetadata"1023 ]1024 }1025 },1026 fields: {1027 textPlainMetadata: {1028 type: "TextPlainMetadata",1029 id: 11030 },1031 imageMetadata: {1032 type: "ImageMetadata",1033 id: 101034 },1035 videoMetadata: {1036 type: "VideoMetadata",1037 id: 201038 },1039 audioMetadata: {1040 type: "AudioMetadata",1041 id: 301042 },1043 fileMetadata: {1044 type: "FileMetadata",1045 id: 601046 },1047 applicationXBeanfunTextMetadata: {1048 type: "ApplicationXBeanfunTextMetadata",1049 id: 801050 },1051 applicationXBeanfunInteractiveMetadata: {1052 type: "ApplicationXBeanfunInteractiveMetadata",1053 id: 811054 },1055 applicationXBeanfunPostbackMetadata: {1056 type: "ApplicationXBeanfunPostbackMetadata",1057 id: 821058 },1059 applicationXBeanfunStickersMetadata: {1060 type: "ApplicationXBeanfunStickersMetadata",1061 id: 831062 },1063 applicationXBeanfunCallingMetadata: {1064 type: "ApplicationXBeanfunCallingMetadata",1065 id: 841066 },1067 applicationXBeanfunLocationMetadata: {1068 type: "ApplicationXBeanfunLocationMetadata",1069 id: 851070 },1071 applicationXBeanfunChestMetadata: {1072 type: "ApplicationXBeanfunChestMetadata",1073 id: 861074 },1075 applicationXBeanfunGraphicMetadata: {1076 type: "ApplicationXBeanfunGraphicMetadata",1077 id: 871078 },1079 applicationXBeanfunGiftMetadata: {1080 type: "ApplicationXBeanfunGiftMetadata",1081 id: 881082 },1083 applicationXBeanfunStickersComboMetadata: {1084 type: "ApplicationXBeanfunStickersComboMetadata",1085 id: 891086 },1087 applicationXBeanfunTextContentMetadata: {1088 type: "ApplicationXBeanfunTextContentMetadata",1089 id: 901090 },1091 applicationXBeanfunAlbumCreatedMetadata: {1092 type: "ApplicationXBeanfunAlbumCreatedMetadata",1093 id: 1001094 },1095 applicationXBeanfunAlbumDeletedMetadata: {1096 type: "ApplicationXBeanfunAlbumDeletedMetadata",1097 id: 1011098 },1099 applicationXBeanfunAlbumRenamedMetadata: {1100 type: "ApplicationXBeanfunAlbumRenamedMetadata",1101 id: 1021102 },1103 applicationXBeanfunPhotosUploadedMetadata: {1104 type: "ApplicationXBeanfunPhotosUploadedMetadata",1105 id: 1031106 },1107 applicationXBeanfunPhotosDeletedMetadata: {1108 type: "ApplicationXBeanfunPhotosDeletedMetadata",1109 id: 1041110 },1111 applicationXBeanfunMessageRecalledMetadata: {1112 type: "ApplicationXBeanfunMessageRecalledMetadata",1113 id: 1051114 },1115 applicationXBeanfunChatRoleChangedMetadata: {1116 type: "ApplicationXBeanfunChatRoleChangedMetadata",1117 id: 1061118 },1119 applicationXBeanfunChatLeftMetadata: {1120 type: "ApplicationXBeanfunChatLeftMetadata",1121 id: 1071122 },1123 applicationXBeanfunChatJoinedMetadata: {1124 type: "ApplicationXBeanfunChatJoinedMetadata",1125 id: 1091126 },1127 applicationXBeanfunChatOwnerChangedMetadata: {1128 type: "ApplicationXBeanfunChatOwnerChangedMetadata",1129 id: 1101130 }1131 }1132 },1133 Snapshot: {1134 fields: {1135 snapshotItems: {1136 rule: "repeated",1137 type: "SnapshotItem",1138 id: 11139 }1140 }1141 },1142 SnapshotItem: {1143 fields: {1144 mentioned: {1145 type: "bool",1146 id: 41147 },1148 scheduled: {1149 type: "bool",1150 id: 51151 },1152 chatId: {1153 type: "int64",1154 id: 6,1155 options: {1156 jstype: "JS_STRING"1157 }1158 },1159 participantsCount: {1160 type: "int32",1161 id: 81162 },1163 unreadCount: {1164 type: "int32",1165 id: 91166 },1167 chatType: {1168 type: "ChatType",1169 id: 101170 },1171 chatRole: {1172 type: "ChatRole",1173 id: 111174 },1175 pinned: {1176 type: "bool",1177 id: 121178 },1179 muted: {1180 type: "bool",1181 id: 131182 },1183 haveApplicants: {1184 type: "bool",1185 id: 141186 },1187 haveSuspects: {1188 type: "bool",1189 id: 151190 },1191 gameName: {1192 type: "string",1193 id: 161194 },1195 chatSubject: {1196 type: "string",1197 id: 171198 },1199 chatPhotoUri: {1200 type: "string",1201 id: 181202 },1203 senderId: {1204 type: "int64",1205 id: 19,1206 options: {1207 jstype: "JS_STRING"1208 }1209 },1210 hidden: {1211 type: "bool",1212 id: 201213 },1214 targetId: {1215 type: "int64",1216 id: 22,1217 options: {1218 jstype: "JS_STRING"1219 }1220 },1221 lastMessage: {1222 type: "ChatMessage",1223 id: 231224 },1225 invited: {1226 type: "bool",1227 id: 241228 },1229 inviter: {1230 type: "int64",1231 id: 25,1232 options: {1233 jstype: "JS_STRING"1234 }1235 },1236 joinedTime: {1237 type: "int64",1238 id: 26,1239 options: {1240 jstype: "JS_STRING"1241 }1242 },1243 invitedTime: {1244 type: "int64",1245 id: 27,1246 options: {1247 jstype: "JS_STRING"1248 }1249 },1250 haveWhispers: {1251 type: "bool",1252 id: 281253 },1254 aliasId: {1255 type: "int64",1256 id: 29,1257 options: {1258 jstype: "JS_STRING"1259 }1260 },1261 isOfficial: {1262 type: "bool",1263 id: 301264 },1265 startTime: {1266 type: "int64",1267 id: 311268 }1269 }1270 },1271 RawMessage: {1272 fields: {1273 mimeType: {1274 type: "MimeType",1275 id: 11276 },1277 content: {1278 type: "string",1279 id: 21280 },1281 displayFull: {1282 type: "bool",1283 id: 31284 },1285 metadata: {1286 type: "MimeTypeMetadata",1287 id: 41288 },1289 ttl: {1290 type: "int32",1291 id: 51292 },1293 expiredTime: {1294 type: "int64",1295 id: 6,1296 options: {1297 jstype: "JS_STRING"1298 }1299 }1300 }1301 },1302 AssistantSearch: {1303 fields: {1304 openId: {1305 type: "string",1306 id: 11307 },1308 serviceId: {1309 type: "string",1310 id: 21311 }1312 }1313 },1314 PairSearch: {1315 fields: {1316 targetId: {1317 type: "int64",1318 id: 1,1319 options: {1320 jstype: "JS_STRING"1321 }1322 }1323 }1324 },1325 DemandMessage: {1326 oneofs: {1327 whichChatOneof: {1328 oneof: [1329 "chatId",1330 "chatExtId",1331 "assistantSearch",1332 "pairSearch"1333 ]1334 },1335 whichSenderOneof: {1336 oneof: [1337 "senderId",1338 "serviceId"1339 ]1340 }1341 },1342 fields: {1343 chatId: {1344 type: "int64",1345 id: 1,1346 options: {1347 jstype: "JS_STRING"1348 }1349 },1350 chatExtId: {1351 type: "string",1352 id: 21353 },1354 assistantSearch: {1355 type: "AssistantSearch",1356 id: 81357 },1358 pairSearch: {1359 type: "PairSearch",1360 id: 101361 },1362 senderId: {1363 type: "int64",1364 id: 3,1365 options: {1366 jstype: "JS_STRING"1367 }1368 },1369 serviceId: {1370 type: "string",1371 id: 91372 },1373 rawMessage: {1374 type: "RawMessage",1375 id: 41376 },1377 replyMessage: {1378 type: "ReplyMessage",1379 id: 51380 }1381 }1382 },1383 ChatMessage: {1384 fields: {1385 mimeType: {1386 type: "MimeType",1387 id: 11388 },1389 messageId: {1390 type: "int64",1391 id: 2,1392 options: {1393 jstype: "JS_STRING"1394 }1395 },1396 chatId: {1397 type: "int64",1398 id: 3,1399 options: {1400 jstype: "JS_STRING"1401 }1402 },1403 content: {1404 type: "string",1405 id: 41406 },1407 senderId: {1408 type: "int64",1409 id: 6,1410 options: {1411 jstype: "JS_STRING"1412 }1413 },1414 metadata: {1415 type: "MimeTypeMetadata",1416 id: 71417 },1418 replyMessage: {1419 type: "ReplyMessage",1420 id: 81421 },1422 ttl: {1423 type: "int32",1424 id: 91425 },1426 messageTime: {1427 type: "int64",1428 id: 10,1429 options: {1430 jstype: "JS_STRING"1431 }1432 },1433 expiredTime: {1434 type: "int64",1435 id: 11,1436 options: {1437 jstype: "JS_STRING"1438 }1439 },1440 displayFull: {1441 type: "bool",1442 id: 121443 }1444 }1445 },1446 ChatMessageV2: {1447 fields: {1448 chatId: {1449 type: "int64",1450 id: 1,1451 options: {1452 jstype: "JS_STRING"1453 }1454 },1455 senderId: {1456 type: "int64",1457 id: 2,1458 options: {1459 jstype: "JS_STRING"1460 }1461 },1462 rawMessage: {1463 type: "RawMessage",1464 id: 31465 },1466 replyMessage: {1467 type: "ReplyMessage",1468 id: 41469 },1470 messageId: {1471 type: "int64",1472 id: 5,1473 options: {1474 jstype: "JS_STRING"1475 }1476 },1477 messageTime: {1478 type: "int64",1479 id: 6,1480 options: {1481 jstype: "JS_STRING"1482 }1483 },1484 displayFull: {1485 type: "bool",1486 id: 121487 }1488 }1489 },1490 KafkaSendMessagePayload: {1491 fields: {1492 ticketId: {1493 type: "int64",1494 id: 1,1495 options: {1496 jstype: "JS_STRING"1497 }1498 },1499 serviceId: {1500 type: "string",1501 id: 21502 },1503 message: {1504 type: "DemandMessage",1505 id: 31506 },1507 device: {1508 type: "string",1509 id: 41510 },1511 isAd: {1512 type: "bool",1513 id: 51514 }1515 }1516 },1517 KafkaReadMessagePayload: {1518 fields: {1519 aliasId: {1520 type: "int64",1521 id: 1,1522 options: {1523 jstype: "JS_STRING"1524 }1525 },1526 chatId: {1527 type: "int64",1528 id: 2,1529 options: {1530 jstype: "JS_STRING"1531 }1532 },1533 messageId: {1534 type: "int64",1535 id: 3,1536 options: {1537 jstype: "JS_STRING"1538 }1539 }1540 }1541 },1542 KafkaProcessMessagePayload: {1543 fields: {1544 message: {1545 type: "ChatMessage",1546 id: 11547 },1548 eventType: {1549 type: "NotificationEventType",1550 id: 21551 },1552 targetId: {1553 type: "int64",1554 id: 31555 },1556 isBlocked: {1557 type: "bool",1558 id: 41559 }1560 }1561 },1562 UserChat: {1563 fields: {1564 chatId: {1565 type: "int64",1566 id: 1,1567 options: {1568 jstype: "JS_STRING"1569 }1570 },1571 type: {1572 type: "ChatType",1573 id: 21574 },1575 subject: {1576 type: "string",1577 id: 31578 },1579 description: {1580 type: "string",1581 id: 41582 },1583 photoUri: {1584 type: "string",1585 id: 51586 },1587 coverPhotoUri: {1588 type: "string",1589 id: 61590 },1591 inviteLink: {1592 type: "string",1593 id: 71594 },1595 ownerId: {1596 type: "int64",1597 id: 8,1598 options: {1599 jstype: "JS_STRING"1600 }1601 },1602 setting: {1603 type: "ChatSetting",1604 id: 91605 },1606 gameInfo: {1607 type: "GameInfo",1608 id: 101609 },1610 metadata: {1611 type: "ChatMetaData",1612 id: 111613 },1614 moderators: {1615 rule: "repeated",1616 type: "int64",1617 id: 12,1618 options: {1619 jstype: "JS_STRING"1620 }1621 },1622 userPreference: {1623 type: "UserChatPreference",1624 id: 131625 },1626 hasApplicants: {1627 type: "bool",1628 id: 141629 },1630 hasSuspects: {1631 type: "bool",1632 id: 15,1633 options: {1634 deprecated: true1635 }1636 },1637 participantsCount: {1638 type: "int32",1639 id: 161640 },1641 modifiedTime: {1642 type: "int64",1643 id: 17,1644 options: {1645 jstype: "JS_STRING"1646 }1647 },1648 tags: {1649 rule: "repeated",1650 type: "int32",1651 id: 181652 },1653 participantsLimit: {1654 type: "int32",1655 id: 191656 },1657 inviterId: {1658 type: "int64",1659 id: 20,1660 options: {1661 jstype: "JS_STRING"1662 }1663 },1664 invitedTime: {1665 type: "int64",1666 id: 21,1667 options: {1668 jstype: "JS_STRING"1669 }1670 },1671 serviceProfile: {1672 type: "ServiceProfile",1673 id: 221674 },1675 announceContent: {1676 type: "string",1677 id: 23,1678 options: {1679 deprecated: true1680 }1681 },1682 announceURI: {1683 type: "string",1684 id: 24,1685 options: {1686 deprecated: true1687 }1688 },1689 streamURI: {1690 type: "string",1691 id: 251692 },1693 streamWidth: {1694 type: "int32",1695 id: 261696 },1697 streamHeight: {1698 type: "int32",1699 id: 271700 },1701 isOfficial: {1702 type: "bool",1703 id: 281704 },1705 status: {1706 type: "ChatStatus",1707 id: 291708 }1709 }1710 },1711 ChatSetting: {1712 fields: {1713 announcePermit: {1714 type: "ChatRole",1715 id: 1,1716 options: {1717 deprecated: true1718 }1719 },1720 invitePermit: {1721 type: "ChatRole",1722 id: 21723 },1724 streamPermit: {1725 type: "ChatRole",1726 id: 31727 },1728 judgePermit: {1729 type: "ChatRole",1730 id: 41731 },1732 pinPermit: {1733 type: "ChatRole",1734 id: 51735 }1736 }1737 },1738 ServiceProfile: {1739 fields: {1740 serviceId: {1741 type: "string",1742 id: 11743 }1744 }1745 },1746 ChatProfile: {1747 fields: {1748 chatId: {1749 type: "int64",1750 id: 1,1751 options: {1752 jstype: "JS_STRING"1753 }1754 },1755 type: {1756 type: "ChatType",1757 id: 21758 },1759 subject: {1760 type: "string",1761 id: 31762 },1763 description: {1764 type: "string",1765 id: 41766 },1767 photoUri: {1768 type: "string",1769 id: 51770 },1771 coverPhotoUri: {1772 type: "string",1773 id: 61774 },1775 inviteLink: {1776 type: "string",1777 id: 71778 },1779 ownerId: {1780 type: "int64",1781 id: 8,1782 options: {1783 jstype: "JS_STRING"1784 }1785 },1786 gameInfo: {1787 type: "GameInfo",1788 id: 101789 },1790 metadata: {1791 type: "ChatProfileMetaData",1792 id: 111793 },1794 participantsCount: {1795 type: "int32",1796 id: 121797 },1798 tags: {1799 rule: "repeated",1800 type: "int32",1801 id: 131802 },1803 participantsLimit: {1804 type: "int32",1805 id: 151806 },1807 isOfficial: {1808 type: "bool",1809 id: 161810 },1811 status: {1812 type: "ChatStatus",1813 id: 171814 },1815 isParticipant: {1816 type: "bool",1817 id: 181818 }1819 }1820 },1821 GameInfo: {1822 fields: {1823 id: {1824 type: "string",1825 id: 11826 },1827 name: {1828 type: "string",1829 id: 21830 }1831 }1832 },1833 ChatMetaData: {1834 fields: {1835 targetId: {1836 type: "int64",1837 id: 1,1838 options: {1839 jstype: "JS_STRING"1840 }1841 },1842 latitude: {1843 type: "google.protobuf.DoubleValue",1844 id: 21845 },1846 longitude: {1847 type: "google.protobuf.DoubleValue",1848 id: 31849 },1850 restricted: {1851 type: "bool",1852 id: 41853 },1854 seeHistory: {1855 type: "bool",1856 id: 51857 },1858 applyQuestions: {1859 type: "bool",1860 id: 71861 },1862 questions: {1863 rule: "repeated",1864 type: "string",1865 id: 81866 },1867 adminApproval: {1868 type: "bool",1869 id: 91870 },1871 startTime: {1872 type: "int64",1873 id: 10,1874 options: {1875 jstype: "JS_STRING"1876 }1877 },1878 endTime: {1879 type: "int64",1880 id: 11,1881 options: {1882 jstype: "JS_STRING"1883 }1884 },1885 speakerIds: {1886 rule: "repeated",1887 type: "int64",1888 id: 12,1889 options: {1890 jstype: "JS_STRING"1891 }1892 }1893 }1894 },1895 ChatProfileMetaData: {1896 fields: {1897 questions: {1898 rule: "repeated",1899 type: "string",1900 id: 11901 },1902 latitude: {1903 type: "google.protobuf.DoubleValue",1904 id: 21905 },1906 longitude: {1907 type: "google.protobuf.DoubleValue",1908 id: 31909 },1910 applyQuestions: {1911 type: "bool",1912 id: 41913 },1914 adminApproval: {1915 type: "bool",1916 id: 51917 },1918 restricted: {1919 type: "bool",1920 id: 61921 },1922 startTime: {1923 type: "int64",1924 id: 7,1925 options: {1926 jstype: "JS_STRING"1927 }1928 },1929 endTime: {1930 type: "int64",1931 id: 8,1932 options: {1933 jstype: "JS_STRING"1934 }1935 },1936 speakerIds: {1937 rule: "repeated",1938 type: "int64",1939 id: 9,1940 options: {1941 jstype: "JS_STRING"1942 }1943 },1944 subscribedCount: {1945 type: "int32",1946 id: 101947 },1948 isSubscribed: {1949 type: "bool",1950 id: 111951 }1952 }1953 },1954 UserChatPreference: {1955 fields: {1956 role: {1957 type: "ChatRole",1958 id: 11959 },1960 pinned: {1961 type: "bool",1962 id: 21963 },1964 mute: {1965 type: "bool",1966 id: 31967 },1968 adBlock: {1969 type: "bool",1970 id: 41971 },1972 aliasId: {1973 type: "int64",1974 id: 5,1975 options: {1976 jstype: "JS_STRING"1977 }1978 },1979 favorite: {1980 type: "bool",1981 id: 61982 },1983 joinedTime: {1984 type: "int64",1985 id: 7,1986 options: {1987 jstype: "JS_STRING"1988 }1989 },1990 hasSuspects: {1991 type: "bool",1992 id: 81993 }1994 }1995 },1996 MessageEvent: {1997 fields: {1998 messageEventItems: {1999 rule: "repeated",2000 type: "MessageEventItem",2001 id: 12002 }2003 }2004 },2005 MessageEventItem: {2006 fields: {2007 messageEventType: {2008 type: "MessageEventType",2009 id: 12010 },2011 messageId: {2012 type: "int64",2013 id: 2,2014 options: {2015 jstype: "JS_STRING"2016 }2017 },2018 message: {2019 type: "ChatMessage",2020 id: 32021 },2022 chatId: {2023 type: "int64",2024 id: 4,2025 options: {2026 jstype: "JS_STRING"2027 }2028 },2029 eventCreatedTime: {2030 type: "int64",2031 id: 5,2032 options: {2033 jstype: "JS_STRING"2034 }2035 }2036 }2037 },2038 PinnedMessageEvent: {2039 fields: {2040 pinnedMessageEventItems: {2041 rule: "repeated",2042 type: "PinnedMessageEventItem",2043 id: 12044 }2045 }2046 },2047 PinnedMessageEventItem: {2048 fields: {2049 pinnedMessageEventType: {2050 type: "PinnedMessageEventType",2051 id: 12052 },2053 pinnedMessageType: {2054 type: "PinnedMessageType",2055 id: 22056 },2057 message: {2058 type: "ChatMessage",2059 id: 32060 },2061 messageId: {2062 type: "int64",2063 id: 4,2064 options: {2065 jstype: "JS_STRING"2066 }2067 },2068 chatId: {2069 type: "int64",2070 id: 5,2071 options: {2072 jstype: "JS_STRING"2073 }2074 },2075 eventCreatedTime: {2076 type: "int64",2077 id: 6,2078 options: {2079 jstype: "JS_STRING"2080 }2081 },2082 senderId: {2083 type: "int64",2084 id: 7,2085 options: {2086 jstype: "JS_STRING"2087 }2088 }2089 }2090 },2091 ChatEvent: {2092 fields: {2093 chatEventItems: {2094 rule: "repeated",2095 type: "ChatEventItem",2096 id: 12097 }2098 }2099 },2100 ChatEventItem: {2101 fields: {2102 userChat: {2103 type: "UserChat",2104 id: 12105 },2106 chatId: {2107 type: "int64",2108 id: 2,2109 options: {2110 jstype: "JS_STRING"2111 }2112 },2113 eventCreatedTime: {2114 type: "int64",2115 id: 3,2116 options: {2117 jstype: "JS_STRING"2118 }2119 },2120 chatEventType: {2121 type: "ChatEventType",2122 id: 42123 }2124 }2125 },2126 UserPreferenceEvent: {2127 fields: {2128 userId: {2129 type: "int64",2130 id: 1,2131 options: {2132 jstype: "JS_STRING"2133 }2134 },2135 chatId: {2136 type: "int64",2137 id: 2,2138 options: {2139 jstype: "JS_STRING"2140 }2141 },2142 eventCreatedTime: {2143 type: "int64",2144 id: 3,2145 options: {2146 jstype: "JS_STRING"2147 }2148 }2149 }2150 },2151 UserEvent: {2152 fields: {2153 aliasId: {2154 type: "int64",2155 id: 1,2156 options: {2157 jstype: "JS_STRING"2158 }2159 },2160 nickname: {2161 type: "string",2162 id: 22163 },2164 avatar: {2165 type: "string",2166 id: 32167 },2168 email: {2169 type: "string",2170 id: 42171 },2172 hashedWholePhone: {2173 type: "string",2174 id: 52175 },2176 customNickname: {2177 type: "string",2178 id: 62179 },2180 phoneCountryCode: {2181 type: "string",2182 id: 72183 }2184 }2185 },2186 AliasInfo: {2187 fields: {2188 id: {2189 type: "int64",2190 id: 1,2191 options: {2192 jstype: "JS_STRING"2193 }2194 },2195 nickname: {2196 type: "string",2197 id: 22198 }2199 }2200 },2201 FriendEvent: {2202 fields: {2203 aliasId: {2204 type: "int64",2205 id: 12206 },2207 nickname: {2208 type: "string",2209 id: 22210 },2211 avatar: {2212 type: "string",2213 id: 32214 },2215 email: {2216 type: "string",2217 id: 42218 },2219 hashedPhone: {2220 type: "string",2221 id: 52222 },2223 friendStatus: {2224 type: "FriendStatus",2225 id: 62226 },2227 friendType: {2228 type: "FriendType",2229 id: 72230 },2231 hashedEmail: {2232 type: "string",2233 id: 82234 },2235 beFriendTime: {2236 type: "int64",2237 id: 92238 },2239 mutualFriendCount: {2240 type: "int32",2241 id: 102242 },2243 phoneCountryCode: {2244 type: "string",2245 id: 112246 }2247 }2248 },2249 AddScheduleMessageEvent: {2250 fields: {2251 chatId: {2252 type: "int64",2253 id: 2,2254 options: {2255 jstype: "JS_STRING"2256 }2257 },2258 senderId: {2259 type: "int64",2260 id: 3,2261 options: {2262 jstype: "JS_STRING"2263 }2264 },2265 scheduleId: {2266 type: "int32",2267 id: 42268 },2269 message: {2270 type: "RawMessage",2271 id: 52272 },2273 replyMessage: {2274 type: "ReplyMessage",2275 id: 62276 },2277 scheduleTime: {2278 type: "int64",2279 id: 7,2280 options: {2281 jstype: "JS_STRING"2282 }2283 },2284 eventCreatedTime: {2285 type: "int64",2286 id: 8,2287 options: {2288 jstype: "JS_STRING"2289 }2290 }2291 }2292 },2293 DeleteScheduleMessageEvent: {2294 fields: {2295 chatId: {2296 type: "int64",2297 id: 2,2298 options: {2299 jstype: "JS_STRING"2300 }2301 },2302 senderId: {2303 type: "int64",2304 id: 3,2305 options: {2306 jstype: "JS_STRING"2307 }2308 },2309 scheduleIds: {2310 rule: "repeated",2311 type: "int32",2312 id: 42313 },2314 eventCreatedTime: {2315 type: "int64",2316 id: 5,2317 options: {2318 jstype: "JS_STRING"2319 }2320 }2321 }2322 },2323 UnlockWhisperMessageEvent: {2324 fields: {2325 chatId: {2326 type: "int64",2327 id: 1,2328 options: {2329 jstype: "JS_STRING"2330 }2331 },2332 userId: {2333 type: "int64",2334 id: 2,2335 options: {2336 jstype: "JS_STRING"2337 }2338 },2339 whisperMessages: {2340 rule: "repeated",2341 type: "WhisperMessage",2342 id: 32343 }2344 }2345 },2346 WhisperMessage: {2347 fields: {2348 messageId: {2349 type: "int64",2350 id: 1,2351 options: {2352 jstype: "JS_STRING"2353 }2354 },2355 expiredTime: {2356 type: "int64",2357 id: 2,2358 options: {2359 jstype: "JS_STRING"2360 }2361 }2362 }2363 },2364 NotificationPayload: {2365 oneofs: {2366 toOneof: {2367 oneof: [2368 "toOpenId",2369 "toAliasId",2370 "toAll"2371 ]2372 },2373 fromOneof: {2374 oneof: [2375 "fromServiceId",2376 "fromAliasId"2377 ]2378 }2379 },2380 fields: {2381 category: {2382 type: "string",2383 id: 12384 },2385 subcategory: {2386 type: "string",2387 id: 22388 },2389 toOpenId: {2390 type: "string",2391 id: 32392 },2393 toAliasId: {2394 type: "int64",2395 id: 4,2396 options: {2397 jstype: "JS_STRING"2398 }2399 },2400 toAll: {2401 type: "bool",2402 id: 52403 },2404 title: {2405 type: "string",2406 id: 62407 },2408 subtitle: {2409 type: "string",2410 id: 72411 },2412 body: {2413 type: "string",2414 id: 82415 },2416 customData: {2417 type: "string",2418 id: 92419 },2420 appLink: {2421 type: "string",2422 id: 102423 },2424 fromServiceId: {2425 type: "string",2426 id: 112427 },2428 fromAliasId: {2429 type: "int64",2430 id: 12,2431 options: {2432 jstype: "JS_STRING"2433 }2434 }2435 }2436 },2437 Notification: {2438 fields: {2439 id: {2440 type: "int64",2441 id: 1,2442 options: {2443 jstype: "JS_STRING"2444 }2445 },2446 payload: {2447 type: "NotificationPayload",2448 id: 22449 },2450 createdTime: {2451 type: "int64",2452 id: 3,2453 options: {2454 jstype: "JS_STRING"2455 }2456 }2457 }2458 },2459 AddNotificationEvent: {2460 fields: {2461 notification: {2462 type: "Notification",2463 id: 12464 }2465 }2466 },2467 JollyBuyEvent: {2468 fields: {2469 createdTime: {2470 type: "int64",2471 id: 1,2472 options: {2473 jstype: "JS_STRING"2474 }2475 }2476 }2477 },2478 StringableInt64Value: {2479 fields: {2480 value: {2481 type: "int64",2482 id: 1,2483 options: {2484 jstype: "JS_STRING"2485 }2486 }2487 }2488 },2489 LogoutEvent: {2490 fields: {2491 aliasId: {2492 type: "int64",2493 id: 1,2494 options: {2495 jstype: "JS_STRING"2496 }2497 },2498 newToken: {2499 type: "string",2500 id: 22501 }2502 }2503 },2504 AliasDeletedEvent: {2505 fields: {2506 deletedAliasID: {2507 type: "int64",2508 id: 1,2509 options: {2510 jstype: "JS_STRING"2511 }2512 }2513 }2514 },2515 LoginPacket: {2516 fields: {2517 token: {2518 type: "string",2519 id: 12520 },2521 device: {2522 type: "string",2523 id: 22524 },2525 userAgent: {2526 type: "string",2527 id: 32528 }2529 }2530 },2531 LoginAck: {2532 oneofs: {2533 ackOneof: {2534 oneof: [2535 "sessionId",2536 "socketError"2537 ]2538 }2539 },2540 fields: {2541 sessionId: {2542 type: "string",2543 id: 12544 },2545 socketError: {2546 type: "SocketError",2547 id: 22548 }2549 }2550 },2551 InitAck: {2552 fields: {2553 systemUnavailable: {2554 type: "bool",2555 id: 12556 },2557 unavailableHint: {2558 type: "string",2559 id: 22560 },2561 chatsLastUpdated: {2562 type: "int64",2563 id: 4,2564 options: {2565 jstype: "JS_STRING"2566 }2567 },2568 usersLastUpdated: {2569 type: "int64",2570 id: 5,2571 options: {2572 jstype: "JS_STRING"2573 }2574 },2575 userSubscriptionsLastUpdated: {2576 type: "int64",2577 id: 7,2578 options: {2579 jstype: "JS_STRING"2580 }2581 },2582 missionsLastUpdated: {2583 type: "int64",2584 id: 8,2585 options: {2586 jstype: "JS_STRING",2587 deprecated: true2588 }2589 },2590 promotionsLastUpdated: {2591 type: "int64",2592 id: 9,2593 options: {2594 jstype: "JS_STRING",2595 deprecated: true2596 }2597 },2598 notificationsLastUpdated: {2599 type: "int64",2600 id: 10,2601 options: {2602 jstype: "JS_STRING"2603 }2604 },2605 assetPointLastUpdated: {2606 type: "int64",2607 id: 11,2608 options: {2609 jstype: "JS_STRING"2610 }2611 },2612 assetTreasureLastUpdated: {2613 type: "int64",2614 id: 12,2615 options: {2616 jstype: "JS_STRING"2617 }2618 },2619 assetBoxLastUpdated: {2620 type: "int64",2621 id: 13,2622 options: {2623 jstype: "JS_STRING"2624 }2625 },2626 assetBonusLastUpdated: {2627 type: "int64",2628 id: 14,2629 options: {2630 jstype: "JS_STRING"2631 }2632 },2633 assetTicketLastUpdated: {2634 type: "int64",2635 id: 15,2636 options: {2637 jstype: "JS_STRING"2638 }2639 },2640 assetCardLastUpdated: {2641 type: "int64",2642 id: 16,2643 options: {2644 jstype: "JS_STRING"2645 }2646 },2647 jollybuyLastUpdated: {2648 type: "int64",2649 id: 17,2650 options: {2651 jstype: "JS_STRING"2652 }2653 },2654 assetTradeCenterLastUpdated: {2655 type: "int64",2656 id: 18,2657 options: {2658 jstype: "JS_STRING"2659 }2660 },2661 assetTradeCenterHistoryLastUpdated: {2662 type: "int64",2663 id: 19,2664 options: {2665 jstype: "JS_STRING"2666 }2667 }2668 }2669 },2670 SendMessagePacket: {2671 fields: {2672 mimeType: {2673 type: "MimeType",2674 id: 12675 },2676 chatId: {2677 type: "int64",2678 id: 2,2679 options: {2680 jstype: "JS_STRING"2681 }2682 },2683 content: {2684 type: "string",2685 id: 32686 },2687 metadata: {2688 type: "MimeTypeMetadata",2689 id: 52690 },2691 senderId: {2692 type: "int64",2693 id: 6,2694 options: {2695 jstype: "JS_STRING"2696 }2697 },2698 replyMessage: {2699 type: "ReplyMessage",2700 id: 72701 },2702 ttl: {2703 type: "int32",2704 id: 82705 },2706 requestId: {2707 type: "string",2708 id: 92709 },2710 expiredTime: {2711 type: "int64",2712 id: 10,2713 options: {2714 jstype: "JS_STRING"2715 }2716 }2717 }2718 },2719 SendMessageAck: {2720 oneofs: {2721 ackOneof: {2722 oneof: [2723 "message",2724 "socketError"2725 ]2726 }2727 },2728 fields: {2729 message: {2730 type: "ChatMessage",2731 id: 12732 },2733 socketError: {2734 type: "SocketError",2735 id: 22736 }2737 }2738 },2739 ScheduleMessagePacket: {2740 fields: {2741 chatId: {2742 type: "int64",2743 id: 1,2744 options: {2745 jstype: "JS_STRING"2746 }2747 },2748 senderId: {2749 type: "int64",2750 id: 2,2751 options: {2752 jstype: "JS_STRING"2753 }2754 },2755 rawMessage: {2756 type: "RawMessage",2757 id: 32758 },2759 replyMessage: {2760 type: "ReplyMessage",2761 id: 42762 },2763 requestId: {2764 type: "int64",2765 id: 5,2766 options: {2767 jstype: "JS_STRING"2768 }2769 },2770 scheduleTime: {2771 type: "int64",2772 id: 6,2773 options: {2774 jstype: "JS_STRING"2775 }2776 }2777 }2778 },2779 ScheduleMessageAck: {2780 fields: {2781 scheduleId: {2782 type: "int32",2783 id: 12784 },2785 socketError: {2786 type: "SocketError",2787 id: 22788 }2789 }2790 },2791 ForwardMessagesPacket: {2792 fields: {2793 chatIds: {2794 rule: "repeated",2795 type: "int64",2796 id: 1,2797 options: {2798 jstype: "JS_STRING"2799 }2800 },2801 senderIds: {2802 rule: "repeated",2803 type: "int64",2804 id: 2,2805 options: {2806 jstype: "JS_STRING"2807 }2808 },2809 rawMessages: {2810 rule: "repeated",2811 type: "RawMessage",2812 id: 32813 }2814 }2815 },2816 ForwardMessagesAck: {2817 fields: {2818 messages: {2819 rule: "repeated",2820 type: "ChatMessage",2821 id: 12822 },2823 failedChatIds: {2824 rule: "repeated",2825 type: "int64",2826 id: 2,2827 options: {2828 jstype: "JS_STRING"2829 }2830 },2831 socketError: {2832 type: "SocketError",2833 id: 32834 }2835 }2836 },2837 SendMessageV2Packet: {2838 fields: {2839 chatId: {2840 type: "int64",2841 id: 1,2842 options: {2843 jstype: "JS_STRING"2844 }2845 },2846 senderId: {2847 type: "int64",2848 id: 2,2849 options: {2850 jstype: "JS_STRING"2851 }2852 },2853 rawMessage: {2854 type: "RawMessage",2855 id: 32856 },2857 replyMessage: {2858 type: "ReplyMessage",2859 id: 42860 },2861 requestId: {2862 type: "int64",2863 id: 5,2864 options: {2865 jstype: "JS_STRING"2866 }2867 }2868 }2869 },2870 EnterChatPacket: {2871 fields: {2872 chatId: {2873 type: "int64",2874 id: 1,2875 options: {2876 jstype: "JS_STRING"2877 }2878 },2879 lastMessageId: {2880 type: "int64",2881 id: 2,2882 options: {2883 jstype: "JS_STRING"2884 }2885 },2886 userId: {2887 type: "int64",2888 id: 3,2889 options: {2890 jstype: "JS_STRING"2891 }2892 }2893 }2894 },2895 EnterChatAck: {2896 fields: {2897 messages: {2898 rule: "repeated",2899 type: "ChatMessage",2900 id: 12901 },2902 pinsLastUpdated: {2903 type: "int64",2904 id: 2,2905 options: {2906 jstype: "JS_STRING"2907 }2908 },2909 chatsLastUpdated: {2910 type: "int64",2911 id: 3,2912 options: {2913 jstype: "JS_STRING"2914 }2915 },2916 updatedMessageIds: {2917 rule: "repeated",2918 type: "int64",2919 id: 4,2920 options: {2921 jstype: "JS_STRING"2922 }2923 },2924 othersLastRead: {2925 type: "int64",2926 id: 5,2927 options: {2928 jstype: "JS_STRING"2929 }2930 },2931 selfLastRead: {2932 type: "int64",2933 id: 6,2934 options: {2935 jstype: "JS_STRING"2936 }2937 },2938 unreadMentionMessageId: {2939 type: "int64",2940 id: 7,2941 options: {2942 jstype: "JS_STRING"2943 }2944 },2945 hasNext: {2946 type: "bool",2947 id: 82948 },2949 socketError: {2950 type: "SocketError",2951 id: 92952 }2953 }2954 },2955 LeaveChatPacket: {2956 fields: {2957 chatId: {2958 type: "int64",2959 id: 1,2960 options: {2961 jstype: "JS_STRING"2962 }2963 },2964 userId: {2965 type: "int64",2966 id: 2,2967 options: {2968 jstype: "JS_STRING"2969 }2970 }2971 }2972 },2973 LeaveChatAck: {2974 fields: {2975 messages: {2976 rule: "repeated",2977 type: "ChatMessage",2978 id: 12979 },2980 socketError: {2981 type: "SocketError",2982 id: 22983 }2984 }2985 },2986 HistoryMessagesPacket: {2987 fields: {2988 chatId: {2989 type: "int64",2990 id: 1,2991 options: {2992 jstype: "JS_STRING"2993 }2994 },2995 messageId: {2996 type: "int64",2997 id: 2,2998 options: {2999 jstype: "JS_STRING"3000 }3001 },3002 userId: {3003 type: "int64",3004 id: 3,3005 options: {3006 jstype: "JS_STRING"3007 }3008 }3009 }3010 },3011 HistoryMessagesAck: {3012 fields: {3013 messages: {3014 rule: "repeated",3015 type: "ChatMessage",3016 id: 13017 },3018 socketError: {3019 type: "SocketError",3020 id: 23021 }3022 }3023 },3024 NextMessagesPacket: {3025 fields: {3026 chatId: {3027 type: "int64",3028 id: 1,3029 options: {3030 jstype: "JS_STRING"3031 }3032 },3033 messageId: {3034 type: "int64",3035 id: 2,3036 options: {3037 jstype: "JS_STRING"3038 }3039 },3040 userId: {3041 type: "int64",3042 id: 3,3043 options: {3044 jstype: "JS_STRING"3045 }3046 }3047 }3048 },3049 NextMessagesAck: {3050 fields: {3051 messages: {3052 rule: "repeated",3053 type: "ChatMessage",3054 id: 13055 },3056 socketError: {3057 type: "SocketError",3058 id: 23059 }3060 }3061 },3062 AroundMessagesPacket: {3063 fields: {3064 chatId: {3065 type: "int64",3066 id: 1,3067 options: {3068 jstype: "JS_STRING"3069 }3070 },3071 messageId: {3072 type: "int64",3073 id: 2,3074 options: {3075 jstype: "JS_STRING"3076 }3077 },3078 userId: {3079 type: "int64",3080 id: 3,3081 options: {3082 jstype: "JS_STRING"3083 }3084 }3085 }3086 },3087 AroundMessagesAck: {3088 fields: {3089 messages: {3090 rule: "repeated",3091 type: "ChatMessage",3092 id: 13093 },3094 socketError: {3095 type: "SocketError",3096 id: 23097 }3098 }3099 },3100 NewestMessagesPacket: {3101 fields: {3102 chatId: {3103 type: "int64",3104 id: 1,3105 options: {3106 jstype: "JS_STRING"3107 }3108 },3109 userId: {3110 type: "int64",3111 id: 2,3112 options: {3113 jstype: "JS_STRING"3114 }3115 }3116 }3117 },3118 NewestMessagesAck: {3119 fields: {3120 messages: {3121 rule: "repeated",3122 type: "ChatMessage",3123 id: 13124 },3125 socketError: {3126 type: "SocketError",3127 id: 23128 }3129 }3130 },3131 RecallMessagePacket: {3132 fields: {3133 chatId: {3134 type: "int64",3135 id: 1,3136 options: {3137 jstype: "JS_STRING"3138 }3139 },3140 messageId: {3141 type: "int64",3142 id: 2,3143 options: {3144 jstype: "JS_STRING"3145 }3146 },3147 recallerId: {3148 type: "int64",3149 id: 3,3150 options: {3151 jstype: "JS_STRING"3152 }3153 }3154 }3155 },3156 RecallMessageAck: {3157 fields: {3158 recalledMessage: {3159 type: "ChatMessage",3160 id: 13161 },3162 socketError: {3163 type: "SocketError",3164 id: 23165 }3166 }3167 },3168 FailedMessage: {3169 fields: {3170 messageId: {3171 type: "int64",3172 id: 1,3173 options: {3174 jstype: "JS_STRING"3175 }3176 },3177 reason: {3178 type: "string",3179 id: 23180 }3181 }3182 },3183 ReceiveMessagePacket: {3184 fields: {3185 messages: {3186 rule: "repeated",3187 type: "ChatMessage",3188 id: 13189 },3190 hasUnread: {3191 type: "bool",3192 id: 23193 }3194 }3195 },3196 ReceiveMessageAck: {3197 fields: {3198 lastMessageId: {3199 type: "int64",3200 id: 1,3201 options: {3202 jstype: "JS_STRING"3203 }3204 },3205 failedMessages: {3206 rule: "repeated",3207 type: "FailedMessage",3208 id: 23209 }3210 }3211 },3212 Read: {3213 fields: {3214 chatId: {3215 type: "int64",3216 id: 1,3217 options: {3218 jstype: "JS_STRING"3219 }3220 },3221 messageId: {3222 type: "int64",3223 id: 2,3224 options: {3225 jstype: "JS_STRING"3226 }3227 },3228 senderId: {3229 type: "int64",3230 id: 3,3231 options: {3232 jstype: "JS_STRING"3233 }3234 }3235 }3236 },3237 SendReadPacket: {3238 fields: {3239 reads: {3240 rule: "repeated",3241 type: "Read",3242 id: 13243 }3244 }3245 },3246 SendReadAck: {3247 fields: {3248 socketError: {3249 type: "SocketError",3250 id: 13251 }3252 }3253 },3254 ReceiveReadPacket: {3255 fields: {3256 read: {3257 type: "Read",3258 id: 33259 }3260 }3261 },3262 TypingPacket: {3263 fields: {3264 senderId: {3265 type: "int64",3266 id: 1,3267 options: {3268 jstype: "JS_STRING"3269 }3270 },3271 avatar: {3272 type: "string",3273 id: 23274 },3275 chatId: {3276 type: "int64",3277 id: 3,3278 options: {3279 jstype: "JS_STRING"3280 }3281 }3282 }3283 },3284 SocketError: {3285 fields: {3286 code: {3287 type: "int32",3288 id: 13289 },3290 message: {3291 type: "string",3292 id: 23293 }3294 }3295 },3296 NewTokenPacket: {3297 fields: {3298 aliasId: {3299 type: "int64",3300 id: 13301 },3302 newToken: {3303 type: "string",3304 id: 23305 }3306 }3307 }3308 }3309 }3310 }3311 }3312 }3313 },3314 google: {3315 nested: {3316 protobuf: {3317 nested: {3318 DoubleValue: {3319 fields: {3320 value: {3321 type: "double",3322 id: 13323 }3324 }3325 },3326 FloatValue: {3327 fields: {3328 value: {3329 type: "float",3330 id: 13331 }3332 }3333 },3334 Int64Value: {3335 fields: {3336 value: {3337 type: "int64",3338 id: 13339 }3340 }3341 },3342 UInt64Value: {3343 fields: {3344 value: {3345 type: "uint64",3346 id: 13347 }3348 }3349 },3350 Int32Value: {3351 fields: {3352 value: {3353 type: "int32",3354 id: 13355 }3356 }3357 },3358 UInt32Value: {3359 fields: {3360 value: {3361 type: "uint32",3362 id: 13363 }3364 }3365 },3366 BoolValue: {3367 fields: {3368 value: {3369 type: "bool",3370 id: 13371 }3372 }3373 },3374 StringValue: {3375 fields: {3376 value: {3377 type: "string",3378 id: 13379 }3380 }3381 },3382 BytesValue: {3383 fields: {3384 value: {3385 type: "bytes",3386 id: 13387 }3388 }3389 }3390 }3391 }3392 }3393 }3394});...
method-005.js
Source:method-005.js
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */2/* This Source Code Form is subject to the terms of the Mozilla Public3 * License, v. 2.0. If a copy of the MPL was not distributed with this4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */5gTestfile = 'method-005.js';6/**7 File Name: method-005.js8 Description:9 Assigning a Java method to a JavaScript object should not change the10 context associated with the Java method -- its this object should11 be the Java object, not the JavaScript object.12 @author christine@netscape.com13 @version 1.0014*/15var SECTION = "LiveConnect Objects";16var VERSION = "1_3";17var TITLE = "Assigning a Static Java Method to a JavaScript object";18startTest();19writeHeaderToLog( SECTION + " "+ TITLE);20var java_string = new java.lang.String("LiveConnect");21var js_string = "JavaScript";22js_string.startsWith = java_string.startsWith;23/*24 new TestCase(25 SECTION,26 "var java_string = new java.lang.String(\"LiveConnect\");" +27 "var js_string = \"JavaScript\"" +28 "js_string.startsWith = java_string.startsWith"+29 "js_string.startsWith(\"J\")",30 false,31 js_string.startsWith("J") );32*/33var mo = new MyObject();34var c = mo.classForName( "java.lang.String" );35new TestCase(36 SECTION,37 "var mo = new MyObject(); "+38 "var c = mo.classForName(\"java.lang.String\");" +39 "c.equals(java.lang.Class.forName(\"java.lang.String\))",40 true,41 c.equals(java.lang.Class.forName("java.lang.String")) );42test();43function MyObject() {44 this.println = java.lang.System.out.println;45 this.classForName = java.lang.Class.forName;46 return this;...
Using AI Code Generation
1var string = wpt.js_string();2console.log(string);3var number = wpt.js_number();4console.log(number);5var boolean = wpt.js_boolean();6console.log(boolean);7var object = wpt.js_object();8console.log(object);9var array = wpt.js_array();10console.log(array);11var function = wpt.js_function();12console.log(function);13var null = wpt.js_null();14console.log(null);15var undefined = wpt.js_undefined();16console.log(undefined);17var date = wpt.js_date();18console.log(date);19var regexp = wpt.js_regexp();20console.log(regexp);21var error = wpt.js_error();22console.log(error);23var json = wpt.js_json();24console.log(json);25var math = wpt.js_math();26console.log(math);27var json_parse = wpt.js_json_parse();28console.log(json_parse);29var json_stringify = wpt.js_json_stringify();30console.log(json_stringify);31var number_parseint = wpt.js_number_parseint();32console.log(number_parseint);33var number_parsefloat = wpt.js_number_parsefloat();34console.log(number_parsefloat);35var number_isfinite = wpt.js_number_isfinite();36console.log(number_isfinite);37var number_isnan = wpt.js_number_isnan();38console.log(number_isnan);
Using AI Code Generation
1var wptools = require('wptools');2var page = wptools.page('Albert Einstein');3page.js_string(function(err, response) {4 if (err) {5 console.log(err);6 } else {7 console.log(response);8 }9});10{ lang: 'en',
Using AI Code Generation
1var wptools = require('wptools');2var page = wptools.page('Albert Einstein');3page.js_string(function(err, js_string) {4 console.log(js_string);5});6var wptools = require('wptools');7var page = wptools.page('Albert Einstein');8page.js_object(function(err, js_object) {9 console.log(js_object);10});11var wptools = require('wptools');12var page = wptools.page('Albert Einstein');13page.js_object(function(err, js_object) {14 console.log(js_object);15});16var wptools = require('wptools');17var page = wptools.page('Albert Einstein');18page.js_object(function(err, js_object) {19 console.log(js_object);20});21var wptools = require('wptools');22var page = wptools.page('Albert Einstein');23page.js_object(function(err, js_object) {24 console.log(js_object);25});26var wptools = require('wptools');27var page = wptools.page('Albert Einstein');28page.js_object(function(err, js_object) {29 console.log(js_object);30});31var wptools = require('wptools');32var page = wptools.page('Albert Einstein');33page.js_object(function(err, js_object) {34 console.log(js_object);35});36var wptools = require('wptools');37var page = wptools.page('Albert Einstein');38page.js_object(function(err, js_object) {39 console.log(js_object);40});41var wptools = require('wptools');42var page = wptools.page('Albert Einstein');43page.js_object(function(err, js_object) {44 console.log(js_object);45});
Using AI Code Generation
1var wptools = require('wptools');2wptools.page('Albert Einstein').get(function(err, page) {3 console.log(page.data.js_string);4});5var wptools = require('wptools');6wptools.page('Albert Einstein').get(function(err, page) {7 console.log(page.data.js_object);8});9var wptools = require('wptools');10wptools.page('Albert Einstein').get(function(err, page) {11 console.log(page.data.html);12});13var wptools = require('wptools');14wptools.page('Albert Einstein').get(function(err, page) {15 console.log(page.data.infobox);16});17var wptools = require('wptools');18wptools.page('Albert Einstein').get(function(err, page) {19 console.log(page.data.categories);20});21var wptools = require('wptools');22wptools.page('Albert Einstein').get(function(err, page) {23 console.log(page.data.links);24});25var wptools = require('wptools');26wptools.page('Albert Einstein').get(function(err, page) {27 console.log(page.data.images);28});29var wptools = require('wptools');30wptools.page('Albert Einstein').get(function(err, page) {31 console.log(page.data.coordinates);32});33var wptools = require('wptools');34wptools.page('Albert Einstein').get(function(err, page) {35 console.log(page.data.references);36});37var wptools = require('wptools');38wptools.page('Albert Einstein').get(function(err, page) {39 console.log(page.data.lang
Using AI Code Generation
1var wptools = require('wptools');2var wiki = wptools.page('Albert Einstein');3wiki.get(function(err, resp) {4 console.log(resp.json());5});6var wptools = require('wptools');7var wiki = wptools.page('Albert Einstein');8wiki.get(function(err, resp) {9 console.log(resp.json());10});11var wptools = require('wptools');12var wiki = wptools.page('Albert Einstein');13wiki.get(function(err, resp) {14 console.log(resp.json());15});16var wptools = require('wptools');17var wiki = wptools.page('Albert Einstein');18wiki.get(function(err, resp) {19 console.log(resp.json());20});21var wptools = require('wptools');22var wiki = wptools.page('Albert Einstein');23wiki.get(function(err, resp) {24 console.log(resp.json());25});26var wptools = require('wptools');27var wiki = wptools.page('Albert Einstein');28wiki.get(function(err, resp) {29 console.log(resp.json());30});31var wptools = require('wptools');32var wiki = wptools.page('Albert Einstein');33wiki.get(function(err, resp) {34 console.log(resp.json());35});36var wptools = require('wptools');37var wiki = wptools.page('Albert Einstein');38wiki.get(function(err, resp) {39 console.log(resp.json());40});41var wptools = require('wptools');42var wiki = wptools.page('Albert Einstein');43wiki.get(function(err, resp) {44 console.log(resp.json());45});
Using AI Code Generation
1var wpt = require('wpt');2var js_string = wpt.js_string;3var str = "Hello World";4var result = js_string(str);5console.log(result);6var wpt = require('wpt');7var js_string = wpt.js_string;8var str = "Hello World";9var result = js_string(str);10console.log(result);11var wpt = require('wpt');12var js_string = wpt.js_string;13var str = "Hello World";14var result = js_string(str);15console.log(result);16var wpt = require('wpt');17var js_string = wpt.js_string;18var str = "Hello World";19var result = js_string(str);20console.log(result);21var wpt = require('wpt');22var js_string = wpt.js_string;23var str = "Hello World";24var result = js_string(str);25console.log(result);26var wpt = require('wpt');27var js_string = wpt.js_string;28var str = "Hello World";29var result = js_string(str);30console.log(result);31var wpt = require('wpt');32var js_string = wpt.js_string;33var str = "Hello World";34var result = js_string(str);35console.log(result);36var wpt = require('wpt');37var js_string = wpt.js_string;38var str = "Hello World";39var result = js_string(str);40console.log(result);41var wpt = require('wpt');42var js_string = wpt.js_string;43var str = "Hello World";44var result = js_string(str);45console.log(result);
Using AI Code Generation
1var wpt = require('wpt');2wpt.js_string('wpt.js', function (err, data) {3 console.log(data);4});5var wpt = require('wpt');6wpt.js_string('wpt.js', function (err, data) {7 console.log(data);8});9var wpt = require('wpt');10wpt.js_string('wpt.js', function (err, data) {11 console.log(data);12});
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!