5 Star 4 Fork 7

egan / message-java-parent

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

###message-java-parent

    MessageRouter messageRouter = new MessageRouter();

    messageRouter
            .rule()
            .async(false)
            .msgType(MessageType.App)
            .event(MessageEvent.unicast)
            .handler(new AppPushMessage())
            .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))
            .next()
            .rule()
            .async(false)
            .msgType(MessageType.Email)
            .event(MessageEvent.unicast)
            .handler(new EmailMessage())
            .configStorage(new EmailMessageConfigStorage("http://email.com", "user", "pwd", MessageType.Email))
            .reEnter(true)
            .next()
            .rule()
            .async(false)
            .msgType(MessageType.SMS)
            .event(MessageEvent.unicast, MessageEvent.batch)
            .handler(new SMSMessage())
            .configStorage(new SMSMessageConfigStorage("http://api.chanzor.com/send", "xxxxx", "xxxxxxxxxxxxxxxxx", "", true, MessageType.SMS))
            .reEnter(true)
            .next()
            .rule()
            .async(false)
            .msgType(MessageType.SMS)
            .event(MessageEvent.radio)
            .handler(new SMSMessage())
            .configStorage(new SMSMessageConfigStorage("http://api.chanzor.com/send", "xxxxxx", "xxxxxxxxxxxxxxxxxxxx1", "", true, MessageType.SMS))
            .reEnter(true)
            .next()
            .rule()
            .async(false)
            .event(MessageEvent.radio)
            .msgType(MessageType.Web)
            .handler(new WebMessage())
            .end()
    ;
    List<MessageType> messageTypes = new ArrayList<>();
    messageTypes.add(MessageType.App);
    messageTypes.add(MessageType.SMS);
    Message message = new Message("user", "to", messageTypes, "title", "content");
    message.setEvent(MessageEvent.unicast);
    messageRouter.route(message);

Repository Comments ( 0 )

Sign in to post a comment

About

消息系统整合,发送短信,app推送,站内信 expand collapse
Java
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/egzosn/message-java-parent.git
git@gitee.com:egzosn/message-java-parent.git
egzosn
message-java-parent
message-java-parent
master

Search