{"id":18555543,"url":"https://github.com/egzosn/message-java-parent","last_synced_at":"2025-04-09T23:32:21.284Z","repository":{"id":100298370,"uuid":"70391369","full_name":"egzosn/message-java-parent","owner":"egzosn","description":"消息系统整合","archived":false,"fork":false,"pushed_at":"2016-10-09T09:45:06.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:44:22.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egzosn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-09T09:08:26.000Z","updated_at":"2018-12-17T03:56:12.000Z","dependencies_parsed_at":"2023-05-13T13:45:33.006Z","dependency_job_id":null,"html_url":"https://github.com/egzosn/message-java-parent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egzosn%2Fmessage-java-parent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egzosn%2Fmessage-java-parent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egzosn%2Fmessage-java-parent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egzosn%2Fmessage-java-parent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egzosn","download_url":"https://codeload.github.com/egzosn/message-java-parent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129925,"owners_count":21052664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:27:04.509Z","updated_at":"2025-04-09T23:32:21.273Z","avatar_url":"https://github.com/egzosn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"###message-java-parent\n\n\n        MessageRouter messageRouter = new MessageRouter();\n\n        messageRouter\n                .rule()\n                .async(false)\n                .msgType(MessageType.App)\n                .event(MessageEvent.unicast)\n                .handler(new AppPushMessage())\n                .configStorage(new AppPushMessageConfigStorage(\"http://msg.umeng.com/api/send\", \"xxxxxxxxxxxxx\", \"xxxxxxxxxxxxxxx\", MessageType.App),new AppPushMessageConfigStorage(\"http://msg.umeng.com/api/send\", \"xxxxxxxxxxxxxxxx\", \"xxxxxxxxxxxxxxxxxx\", MessageType.App))\n                .next()\n                .rule()\n                .async(false)\n                .msgType(MessageType.Email)\n                .event(MessageEvent.unicast)\n                .handler(new EmailMessage())\n                .configStorage(new EmailMessageConfigStorage(\"http://email.com\", \"user\", \"pwd\", MessageType.Email))\n                .reEnter(true)\n                .next()\n                .rule()\n                .async(false)\n                .msgType(MessageType.SMS)\n                .event(MessageEvent.unicast, MessageEvent.batch)\n                .handler(new SMSMessage())\n                .configStorage(new SMSMessageConfigStorage(\"http://api.chanzor.com/send\", \"xxxxx\", \"xxxxxxxxxxxxxxxxx\", \"\", true, MessageType.SMS))\n                .reEnter(true)\n                .next()\n                .rule()\n                .async(false)\n                .msgType(MessageType.SMS)\n                .event(MessageEvent.radio)\n                .handler(new SMSMessage())\n                .configStorage(new SMSMessageConfigStorage(\"http://api.chanzor.com/send\", \"xxxxxx\", \"xxxxxxxxxxxxxxxxxxxx1\", \"\", true, MessageType.SMS))\n                .reEnter(true)\n                .next()\n                .rule()\n                .async(false)\n                .event(MessageEvent.radio)\n                .msgType(MessageType.Web)\n                .handler(new WebMessage())\n                .end()\n        ;\n        List\u003cMessageType\u003e messageTypes = new ArrayList\u003c\u003e();\n        messageTypes.add(MessageType.App);\n        messageTypes.add(MessageType.SMS);\n        Message message = new Message(\"user\", \"to\", messageTypes, \"title\", \"content\");\n        message.setEvent(MessageEvent.unicast);\n        messageRouter.route(message);","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegzosn%2Fmessage-java-parent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegzosn%2Fmessage-java-parent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegzosn%2Fmessage-java-parent/lists"}