mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Generify Packet class returned by PackageCollector everywhere
This will help to get rid of repetitive class casts, and make PacketCollector api more inline with itself (since some methods are already generic return methods).
This commit is contained in:
parent
b3b0e02ae1
commit
522d0f30ff
5 changed files with 17 additions and 15 deletions
|
@ -827,7 +827,7 @@ public class AgentSession {
|
|||
request.setType(IQ.Type.get);
|
||||
request.setTo(workgroupJID);
|
||||
|
||||
AgentChatHistory response = (AgentChatHistory) connection.createPacketCollectorAndSend(
|
||||
AgentChatHistory response = connection.createPacketCollectorAndSend(
|
||||
request).nextResult();
|
||||
|
||||
return response;
|
||||
|
@ -901,7 +901,7 @@ public class AgentSession {
|
|||
request.setTo(workgroupJID);
|
||||
request.setSessionID(sessionID);
|
||||
|
||||
ChatMetadata response = (ChatMetadata) connection.createPacketCollectorAndSend(request).nextResult();
|
||||
ChatMetadata response = connection.createPacketCollectorAndSend(request).nextResult();
|
||||
|
||||
return response.getMetadata();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue