summaryrefslogtreecommitdiff
path: root/FacebookRM/entities.h
blob: 432af9f6694c48b7650b7929a4db7eb9a77836b0 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*

Facebook plugin for Miranda Instant Messenger
_____________________________________________

Copyright © 2009-11 Michal Zelinka

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

File name      : $HeadURL: http://eternityplugins.googlecode.com/svn/trunk/facebook/entities.h $
Revision       : $Revision: 91 $
Last change by : $Author: n3weRm0re.ewer $
Last change on : $Date: 2011-01-08 11:10:34 +0100 (so, 08 1 2011) $

*/

#pragma once

struct facebook_user
{
	HANDLE handle;

	std::string user_id;
	std::string real_name;

	unsigned int status_id;
	unsigned int gender;

	std::string image_url;


	facebook_user( )
	{
		this->handle = NULL;
		this->user_id = this->real_name = this->image_url = "";
		this->status_id = ID_STATUS_OFFLINE;
		this->gender = 0;
	}

	facebook_user( facebook_user* fu )
	{
		this->handle = fu->handle;
		this->image_url = fu->image_url;
		this->real_name = fu->real_name;
		this->status_id = fu->status_id;
		this->user_id = fu->user_id;
		this->gender = fu->gender;
	}
};

struct facebook_message
{
	std::string user_id;
	std::string message_text;
	time_t time;

	facebook_message( )
	{
		this->user_id = this->message_text = "";
		this->time = 0;
	}

	facebook_message( const facebook_message& msg )
	{
		this->user_id = msg.user_id;
		this->message_text = msg.message_text;
		this->time = msg.time;
	}
};

struct facebook_notification
{
	std::string user_id;
	std::string text;
	std::string link;

	facebook_notification( )
	{
		this->user_id = this->text = this->link = "";
	}
};

struct facebook_newsfeed
{
	std::string user_id;
	std::string title;
	std::string text;
	std::string link;

	facebook_newsfeed( )
	{
		this->user_id = this->title = this->text = this->link = "";
	}
};