-
Notifications
You must be signed in to change notification settings - Fork 9
/
Message.h
33 lines (28 loc) · 900 Bytes
/
Message.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
#ifndef UAMQP_PHP_MESSAGE_H
#define UAMQP_PHP_MESSAGE_H
#include <phpcpp.h>
#include "azure_uamqp_c/uamqp.h"
class Message : public Php::Base
{
private:
std::string body;
MESSAGE_HANDLE message;
AMQP_VALUE application_properties;
AMQP_VALUE annotations_map;
Php::Value applicationPropertiesMap;
BINARY_DATA binary_data;
public:
Message();
virtual ~Message() = default;
void setMessageHandler(MESSAGE_HANDLE message);
MESSAGE_HANDLE getMessageHandler();
void setBody(std::string body);
void __construct(Php::Parameters ¶ms);
Php::Value getBody();
Php::Value getApplicationProperty(Php::Parameters ¶ms);
Php::Value getApplicationProperties();
void setApplicationProperty(Php::Parameters ¶ms);
Php::Value getMessageAnnotation(Php::Parameters ¶ms);
void setMessageAnnotation(Php::Parameters ¶ms);
};
#endif