Twitch SDK (Internal)
chatreplaydeletetask.h
Go to the documentation of this file.
1 /********************************************************************************************
2  * Twitch Broadcasting SDK
3  *
4  * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5  * may not be copied or used except in accordance with the terms of that agreement
6  * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7  *********************************************************************************************/
8 
9 #pragma once
10 
13 
14 namespace ttv
15 {
16  namespace chat
17  {
18  class ChatReplayDeleteTask;
19  }
20 }
21 
23 {
24 public:
25  struct Result
26  {
27 
28  };
29 
30  typedef std::function<void(ChatReplayDeleteTask* source, TTV_ErrorCode ec, std::shared_ptr<Result> result)> Callback;
31 
32 public:
33  ChatReplayDeleteTask(const std::string& chatId, const std::string& authToken, const ChannelId channelId, Callback callback);
34 
35 protected:
36  virtual const char* GetTaskName() const override { return "ChatReplayDeleteTask"; }
37 
38  virtual void FillHttpRequestInfo(HttpRequestInfo& requestInfo) override;
39  virtual void OnComplete() override;
40 
41 private:
42  std::string mChatId;
44  std::shared_ptr<Result> mResult;
46 };
std::function< void(ChatReplayDeleteTask *source, TTV_ErrorCode ec, std::shared_ptr< Result > result)> Callback
Definition: chatreplaydeletetask.h:30
Definition: chatreplaydeletetask.h:25
std::shared_ptr< Result > mResult
Definition: chatreplaydeletetask.h:44
ChatReplayDeleteTask(const std::string &chatId, const std::string &authToken, const ChannelId channelId, Callback callback)
Definition: httptask.h:19
Callback mCallback
Definition: chatreplaydeletetask.h:45
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
virtual void FillHttpRequestInfo(HttpRequestInfo &requestInfo) override
virtual const char * GetTaskName() const override
Definition: chatreplaydeletetask.h:36
std::string mChatId
Definition: chatreplaydeletetask.h:42
ChannelId mChannelId
Definition: chatreplaydeletetask.h:43
uint32_t ChannelId
Definition: coretypes.h:23
Definition: chatreplaydeletetask.h:22
Definition: httptask.h:22
virtual void OnComplete() override