diff options
Diffstat (limited to 'FacebookRM/entities.h')
-rw-r--r-- | FacebookRM/entities.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/FacebookRM/entities.h b/FacebookRM/entities.h index 432af9f..c09c20d 100644 --- a/FacebookRM/entities.h +++ b/FacebookRM/entities.h @@ -63,11 +63,12 @@ struct facebook_message {
std::string user_id;
std::string message_text;
+ std::string sender_name;
time_t time;
facebook_message( )
{
- this->user_id = this->message_text = "";
+ this->user_id = this->message_text = this->sender_name = "";
this->time = 0;
}
@@ -75,6 +76,7 @@ struct facebook_message {
this->user_id = msg.user_id;
this->message_text = msg.message_text;
+ this->sender_name = msg.sender_name;
this->time = msg.time;
}
};
@@ -103,3 +105,34 @@ struct facebook_newsfeed this->user_id = this->title = this->text = this->link = "";
}
};
+
+
+struct send_chat
+{
+ send_chat(const std::string &chat_id,const std::string &msg) : chat_id(chat_id), msg(msg) {}
+ std::string chat_id;
+ std::string msg;
+};
+
+
+struct send_direct
+{
+ send_direct(HANDLE hContact,const std::string &msg, HANDLE msgid) : hContact(hContact), msg(msg), msgid(msgid) {}
+ HANDLE hContact;
+ std::string msg;
+ HANDLE msgid;
+};
+
+struct send_typing
+{
+ send_typing(HANDLE hContact,const int status) : hContact(hContact), status(status) {}
+ HANDLE hContact;
+ int status;
+};
+
+struct send_messaging
+{
+ send_messaging(const std::string &user_id, const int type) : user_id(user_id), type(type) {}
+ std::string user_id;
+ int type;
+};
|