Twitch SDK (Internal)
ichatchannel.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 
12 
13 #include <memory>
14 
15 namespace ttv
16 {
17  namespace chat
18  {
19  class IChatChannel;
20  }
21 }
22 
23 
28 {
29 public:
30  using SetBroadcasterLanguageChatEnabledCallback = std::function<void(TTV_ErrorCode ec)>;
31 
32 public:
33  virtual ~IChatChannel();
34 
38  virtual TTV_ErrorCode Dispose() = 0;
39 
40  virtual TTV_ErrorCode Connect() = 0;
41  virtual TTV_ErrorCode Disconnect() = 0;
42  virtual TTV_ErrorCode SendMessage(const std::string& message) = 0;
44  virtual TTV_ErrorCode OptInToBroadcasterLanguageChat(const std::string& language) = 0;
45 };
Definition: ichatchannel.h:27
virtual TTV_ErrorCode Dispose()=0
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
virtual TTV_ErrorCode Disconnect()=0
virtual TTV_ErrorCode SetBroadcasterLanguageChatEnabled(bool enabled, const SetBroadcasterLanguageChatEnabledCallback &callback)=0
std::function< void(TTV_ErrorCode ec)> SetBroadcasterLanguageChatEnabledCallback
Definition: ichatchannel.h:30
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual TTV_ErrorCode SendMessage(const std::string &message)=0
virtual TTV_ErrorCode OptInToBroadcasterLanguageChat(const std::string &language)=0
virtual TTV_ErrorCode Connect()=0