summaryrefslogtreecommitdiff
path: root/vapi/twitter-glib-1.0.vapi
blob: 593154affe79a7cb6f2dfc32b4ff4b11356d9cb8 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/* twitter-glib-1.0.vapi generated by vapigen, do not modify. */

namespace Twitter {
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public class Client : GLib.Object {
		[CCode (has_construct_function = false)]
		public Client ();
		public ulong add_favorite (uint status_id);
		public ulong add_friend (string user);
		public ulong add_status (string text);
		public void end_session ();
		public ulong follow_user (string user);
		[CCode (has_construct_function = false)]
		public Client.for_user (string email, string password);
		[CCode (has_construct_function = false)]
		public Client.full (Twitter.Provider provider, string? base_url, string? email, string? password);
		public ulong get_archive (int page);
		public unowned string get_base_url ();
		public ulong get_favorites (string user, int page);
		public ulong get_followers (int page, bool omit_status);
		public ulong get_friends (string user, int page, bool omit_status);
		public ulong get_friends_timeline (string friend_, int64 since_date);
		public Twitter.Provider get_provider ();
		public ulong get_public_timeline (uint since_id);
		public void get_rate_limit (int limit, int remaining);
		public ulong get_replies ();
		public ulong get_status (uint status_id);
		public void get_user (out unowned string email, out unowned string password);
		public ulong get_user_timeline (string user, uint count, int64 since_date);
		public ulong leave_user (string user);
		public ulong remove_favorite (uint status_id);
		public ulong remove_friend (string user);
		public ulong remove_status (uint status_id);
		public void set_user (string email, string password);
		public ulong show_user_from_email (string email);
		public ulong show_user_from_id (string id_or_screen_name);
		public ulong verify_user ();
		public string base_url { get; construct; }
		[NoAccessorMethod]
		public string email { owned get; set; }
		[NoAccessorMethod]
		public int max_requests { get; }
		[NoAccessorMethod]
		public string password { owned get; set; }
		public Twitter.Provider provider { get; construct; }
		[NoAccessorMethod]
		public int remaining_requests { get; }
		[NoAccessorMethod]
		public string user_agent { owned get; construct; }
		public virtual signal bool authenticate (Twitter.AuthState state);
		public virtual signal void session_ended ();
		public virtual signal void status_received (ulong handle, Twitter.Status? status, GLib.Error error);
		public virtual signal void timeline_complete ();
		public virtual signal void user_received (ulong handle, Twitter.User user, GLib.Error error);
		public virtual signal void user_verified (ulong handle, bool is_verified, GLib.Error error);
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public class Status : GLib.InitiallyUnowned {
		[CCode (has_construct_function = false)]
		public Status ();
		[CCode (has_construct_function = false)]
		public Status.from_data (string buffer);
		public unowned string get_created_at ();
		public uint get_id ();
		public uint get_reply_to_status ();
		public uint get_reply_to_user ();
		public unowned string get_source ();
		public unowned string get_text ();
		public bool get_truncated ();
		public unowned string get_url ();
		public unowned Twitter.User get_user ();
		public bool load_from_data (string buffer) throws GLib.Error;
		public string created_at { get; }
		public uint id { get; }
		public uint reply_to_status { get; }
		public uint reply_to_user { get; }
		public string source { get; }
		public string text { get; }
		public bool truncated { get; }
		public string url { get; }
		public Twitter.User user { get; }
		public virtual signal void changed ();
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public class Timeline : GLib.Object {
		[CCode (has_construct_function = false)]
		public Timeline ();
		[CCode (has_construct_function = false)]
		public Timeline.from_data (string buffer);
		public unowned GLib.List get_all ();
		public uint get_count ();
		public Twitter.Status get_id (uint id);
		public Twitter.Status get_pos (int index_);
		public bool load_from_data (string buffer) throws GLib.Error;
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public class User : GLib.InitiallyUnowned {
		[CCode (has_construct_function = false)]
		public User ();
		[CCode (has_construct_function = false)]
		public User.from_data (string buffer);
		public unowned string get_created_at ();
		public unowned string get_description ();
		public uint get_favorites_count ();
		public uint get_followers_count ();
		public bool get_following ();
		public uint get_friends_count ();
		public uint get_id ();
		public unowned string get_location ();
		public unowned string get_name ();
		public Gdk.Pixbuf get_profile_image ();
		public unowned string get_profile_image_url ();
		public bool get_protected ();
		public unowned string get_screen_name ();
		public Twitter.Status get_status ();
		public uint get_statuses_count ();
		public unowned string get_time_zone ();
		public unowned string get_url ();
		public int get_utc_offset ();
		public bool load_from_data (string buffer) throws GLib.Error;
		public string created_at { get; }
		public string description { get; }
		public uint favorites_count { get; }
		public uint followers_count { get; }
		public bool following { get; }
		public uint friends_count { get; }
		public uint id { get; }
		public string location { get; }
		public string name { get; }
		public string profile_image_url { get; }
		public bool @protected { get; }
		public string screen_name { get; }
		public Twitter.Status status { get; }
		public uint statuses_count { get; }
		public string time_zone { get; }
		public string url { get; }
		public int utc_offset { get; }
		public virtual signal void changed ();
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public class UserList : GLib.Object {
		[CCode (has_construct_function = false)]
		public UserList ();
		[CCode (has_construct_function = false)]
		public UserList.from_data (string buffer);
		public unowned GLib.List get_all ();
		public uint get_count ();
		public Twitter.User get_id (uint id);
		public Twitter.User get_pos (int index_);
		public bool load_from_data (string buffer) throws GLib.Error;
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_AUTH_")]
	public enum AuthState {
		NEGOTIATING,
		RETRY,
		FAILED,
		SUCCESS
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_")]
	public enum Provider {
		CUSTOM_PROVIDER,
		DEFAULT_PROVIDER,
		IDENTI_CA
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_ERROR_")]
	public errordomain Error {
		HOST_NOT_FOUND,
		CANCELLED,
		PERMISSION_DENIED,
		NOT_FOUND,
		TIMED_OUT,
		FAILED,
		NOT_MODIFIED,
		PARSE_ERROR
	}
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const string GLIB_API_VERSION_S;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const int GLIB_MAJOR_VERSION;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const int GLIB_MICRO_VERSION;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const int GLIB_MINOR_VERSION;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const int GLIB_VERSION_HEX;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public const string GLIB_VERSION_S;
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static bool date_to_time_val (string date, out GLib.TimeVal time_);
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static unowned Twitter.Error error_from_status (uint status);
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static GLib.Quark error_quark ();
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static unowned string http_date_from_delta (int seconds);
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static unowned string http_date_from_time_t (ulong time_);
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static int http_date_to_delta (string date);
	[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
	public static ulong http_date_to_time_t (string date);
}