Create a new message by using the boto message class, as shown in Listing 8.
使用botomessage类创建新消息,见清单8。
There is a subclass of the base message class specific to each type of message.
Message基类的一个子类特定于消息的具体类型。
The message class is a wrapper around the payload of the message being processed.
Message类是个包装器,包装被处理消息的有效负载。
Use semicolons to separate multiple message class names.
用分号来分隔多个讯息类别名称。
The Message class simply defines two fields: id and text.
message类只定义两个字段:id和text。
The Message class implements two constructors, as shown in Listing 7.
message类实现两个构造器,如清单7所示。
The Message class implements two constructors, as shown in Listing 7.
message类实现两个构造器,如清单7所示。
应用推荐