AnsweredAssumed Answered

Mistakes in Smack Documentation

Question asked by Clinton Yeboah on Jun 12, 2016
Latest reply on Jun 13, 2016 by Flow

I think there is a problem is the Smack Documentation, which might need correction. http://download.igniterealtime.org/smack/docs/latest/documentation/messaging.htm l

 

Line 24:

Message newMessage = new Message();
newMessage.setBody("Howdy!");
message.setProperty("favoriteColor", "red");
newChat.sendMessage(newMessage);

 

Problems:

1. It seems Message Class does not have any method called setProperty(). Message (Smack 4.1.5 API)

2. It should be newMessage.setProperty() and not message.setProperty().

 

Please verify and correct these mistakes. Anyway, I am in need of the setProperty() method.

Outcomes