forked from sheldonth/activetick-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequestor.h
37 lines (30 loc) · 1.42 KB
/
Requestor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2015-present Sheldon Thomas
#pragma once
#include <queue>
#include <ActiveTickServerAPI/ActiveTickServerAPI.h>
#include <ActiveTickServerAPI/ActiveTickServerRequestor.h>
#include "ProtobufHelper.h"
#include <node.h>
using namespace v8;
class Requestor : public ActiveTickServerRequestor
{
public:
Requestor(const uint64_t session);
virtual ~Requestor(void);
private:
uint64_t session_handle;
virtual void OnATBarHistoryDbResponse ( uint64_t origRequest,
ATBarHistoryResponseType responseType,
LPATBARHISTORY_RESPONSE pResponse);
virtual void OnATConstituentListResponse( uint64_t origRequest,
LPATSYMBOL pSymbols,
uint32_t symbolsCount);
virtual void OnATQuoteStreamResponse ( uint64_t origRequest,
ATStreamResponseType responseType,
LPATQUOTESTREAM_RESPONSE pResponse,
uint32_t responseCount);
virtual void OnATQuoteDbResponse ( uint64_t origRequest,
ATQuoteDbResponseType responseType,
LPATQUOTEDB_RESPONSE pResponse,
uint32_t responseCount);
};