wavelength 1.0.0
Loading...
Searching...
No Matches
getchannelstask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
13class GetChannelsTask : public NetTask {
14public:
21 ~GetChannelsTask() override = default;
22
35 static void
36 OnResponse(int nConnection, int nType, int nSize, const rtMediusChannelListResponse *pResponse);
37
38protected:
45 void OnStart() override;
46};
Step that lists the chat rooms into LobbyRT::mChatrooms.
Definition getchannelstask.h:13
void OnStart() override
Clear the rooms and send the request.
~GetChannelsTask() override=default
Destroy the object.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusChannelListResponse *pResponse)
Add a room, and finish the step the response is tagged with after the last room.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24