Twitch SDK (Internal)
ichannelstatus.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-2017 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
11 namespace ttv
12 {
13  class IChannelStatus;
14 }
15 
16 
22 {
23 public:
24  using UploadProfileImageCallback = std::function<void(TTV_ErrorCode ec, const std::vector<ProfileImage>& images)>;
25 
26 public:
27  virtual ~IChannelStatus() = default;
28 
32  virtual TTV_ErrorCode Dispose() = 0;
33 
58  virtual TTV_ErrorCode UploadProfileImage(const char* imageBuffer, size_t imageSize, const UploadProfileImageCallback& callback) = 0;
59 };
Definition: ichannelstatus.h:21
virtual ~IChannelStatus()=default
std::function< void(TTV_ErrorCode ec, const std::vector< ProfileImage > &images)> UploadProfileImageCallback
Definition: ichannelstatus.h:24
virtual TTV_ErrorCode UploadProfileImage(const char *imageBuffer, size_t imageSize, const UploadProfileImageCallback &callback)=0
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual TTV_ErrorCode Dispose()=0