Development of Java wechat public platform (4) classification of reply messages and creation of entities

The classification of messages after receiving wechat server messages was mentioned earlier. At that time, they were mainly divided into ordinary messages and event messages. Here we want to talk about the types of messages we are replying to users, Here, it can also be roughly divided into two categories: one is called [ordinary message reply] where resources do not need to be uploaded to the wechat server; the other is called [multimedia message reply] where resources need to be uploaded to the wechat server!

General message reply: reply to text message / reply to graphic message

Multimedia message reply: reply to picture message / reply to voice message / reply to video message / reply to music message

(1) Implementation of reply message base class

(2) Common message reply entity implementation

① Text message body

② Graphic / multi graphic message implementation

(3) Implementation of multimedia message reply message body

① Reply picture message entity

② Reply to music message entity

③ Reply video message entity

④ Reply voice message entity

Here, the division of reply message types and the specific implementation code of entities are basically completed. After these new entities are added, the project structure of our project is roughly as follows:

The next part will talk about the implementation of

此处内容需要回复后才能查看

. Thank you for reading. If you have any questions, you can leave a message for discussion!

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>