Twitch SDK (Internal)
ichatreplay.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 #include <string>
14 #include <vector>
15 #include <unordered_set>
16 #include <map>
17 #include <memory>
18 
19 namespace ttv
20 {
21  namespace chat
22  {
23  class IChatReplay;
24  }
25 }
26 
27 
32 {
33 public:
34  virtual ~IChatReplay();
35 
39  virtual TTV_ErrorCode Dispose() = 0;
40 
46  virtual TTV_ErrorCode Play() = 0;
47 
51  virtual TTV_ErrorCode Pause() = 0;
52 
57  virtual TTV_ErrorCode Seek(Timestamp timestamp) = 0;
58 
62  virtual TTV_ErrorCode NudgePlayhead(uint64_t timestampMilliseconds) = 0;
63 
67  virtual TTV_ErrorCode GetCurrentTime(Timestamp& timestamp) const = 0;
68 
73  virtual TTV_ErrorCode DeleteMessage(const std::string& messageId) = 0;
74 
78  virtual TTV_ErrorCode GetChannelId(UserId& result) const = 0;
79 
83  virtual TTV_ErrorCode GetReplayState(ChatReplayState& result) const = 0;
84 
85 };
uint32_t UserId
Definition: coretypes.h:22
ChatReplayState
Definition: chattypes.h:547
uint32_t Timestamp
Definition: coretypes.h:27
virtual TTV_ErrorCode GetChannelId(UserId &result) const =0
virtual TTV_ErrorCode Seek(Timestamp timestamp)=0
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
virtual TTV_ErrorCode Dispose()=0
virtual TTV_ErrorCode Play()=0
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual TTV_ErrorCode NudgePlayhead(uint64_t timestampMilliseconds)=0
Definition: ichatreplay.h:31
virtual TTV_ErrorCode DeleteMessage(const std::string &messageId)=0
virtual TTV_ErrorCode GetCurrentTime(Timestamp &timestamp) const =0
virtual TTV_ErrorCode Pause()=0
virtual TTV_ErrorCode GetReplayState(ChatReplayState &result) const =0