1 /* twitter-glib-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Twitter", lower_case_cprefix = "twitter_")]
5 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
6 public class Client : GLib.Object {
7 [CCode (has_construct_function = false)]
9 public ulong add_favorite (uint status_id);
10 public ulong add_friend (string user);
11 public ulong add_status (string text);
12 public void end_session ();
13 public ulong follow_user (string user);
14 [CCode (has_construct_function = false)]
15 public Client.for_user (string email, string password);
16 [CCode (has_construct_function = false)]
17 public Client.full (Twitter.Provider provider, string? base_url, string? email, string? password);
18 public ulong get_archive (int page);
19 public unowned string get_base_url ();
20 public ulong get_favorites (string user, int page);
21 public ulong get_followers (int page, bool omit_status);
22 public ulong get_friends (string user, int page, bool omit_status);
23 public ulong get_friends_timeline (string friend_, int64 since_date);
24 public Twitter.Provider get_provider ();
25 public ulong get_public_timeline (uint since_id);
26 public void get_rate_limit (int limit, int remaining);
27 public ulong get_replies ();
28 public ulong get_status (uint status_id);
29 public void get_user (out unowned string email, out unowned string password);
30 public ulong get_user_timeline (string user, uint count, int64 since_date);
31 public ulong leave_user (string user);
32 public ulong remove_favorite (uint status_id);
33 public ulong remove_friend (string user);
34 public ulong remove_status (uint status_id);
35 public void set_user (string email, string password);
36 public ulong show_user_from_email (string email);
37 public ulong show_user_from_id (string id_or_screen_name);
38 public ulong verify_user ();
39 public string base_url { get; construct; }
41 public string email { owned get; set; }
43 public int max_requests { get; }
45 public string password { owned get; set; }
46 public Twitter.Provider provider { get; construct; }
48 public int remaining_requests { get; }
50 public string user_agent { owned get; construct; }
51 public virtual signal bool authenticate (Twitter.AuthState state);
52 public virtual signal void session_ended ();
53 public virtual signal void status_received (ulong handle, Twitter.Status? status, GLib.Error error);
54 public virtual signal void timeline_complete ();
55 public virtual signal void user_received (ulong handle, Twitter.User user, GLib.Error error);
56 public virtual signal void user_verified (ulong handle, bool is_verified, GLib.Error error);
58 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
59 public class Status : GLib.InitiallyUnowned {
60 [CCode (has_construct_function = false)]
62 [CCode (has_construct_function = false)]
63 public Status.from_data (string buffer);
64 public unowned string get_created_at ();
65 public uint get_id ();
66 public uint get_reply_to_status ();
67 public uint get_reply_to_user ();
68 public unowned string get_source ();
69 public unowned string get_text ();
70 public bool get_truncated ();
71 public unowned string get_url ();
72 public unowned Twitter.User get_user ();
73 public bool load_from_data (string buffer) throws GLib.Error;
74 public string created_at { get; }
75 public uint id { get; }
76 public uint reply_to_status { get; }
77 public uint reply_to_user { get; }
78 public string source { get; }
79 public string text { get; }
80 public bool truncated { get; }
81 public string url { get; }
82 public Twitter.User user { get; }
83 public virtual signal void changed ();
85 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
86 public class Timeline : GLib.Object {
87 [CCode (has_construct_function = false)]
89 [CCode (has_construct_function = false)]
90 public Timeline.from_data (string buffer);
91 public unowned GLib.List get_all ();
92 public uint get_count ();
93 public Twitter.Status get_id (uint id);
94 public Twitter.Status get_pos (int index_);
95 public bool load_from_data (string buffer) throws GLib.Error;
97 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
98 public class User : GLib.InitiallyUnowned {
99 [CCode (has_construct_function = false)]
101 [CCode (has_construct_function = false)]
102 public User.from_data (string buffer);
103 public unowned string get_created_at ();
104 public unowned string get_description ();
105 public uint get_favorites_count ();
106 public uint get_followers_count ();
107 public bool get_following ();
108 public uint get_friends_count ();
109 public uint get_id ();
110 public unowned string get_location ();
111 public unowned string get_name ();
112 public Gdk.Pixbuf get_profile_image ();
113 public unowned string get_profile_image_url ();
114 public bool get_protected ();
115 public unowned string get_screen_name ();
116 public Twitter.Status get_status ();
117 public uint get_statuses_count ();
118 public unowned string get_time_zone ();
119 public unowned string get_url ();
120 public int get_utc_offset ();
121 public bool load_from_data (string buffer) throws GLib.Error;
122 public string created_at { get; }
123 public string description { get; }
124 public uint favorites_count { get; }
125 public uint followers_count { get; }
126 public bool following { get; }
127 public uint friends_count { get; }
128 public uint id { get; }
129 public string location { get; }
130 public string name { get; }
131 public string profile_image_url { get; }
132 public bool @protected { get; }
133 public string screen_name { get; }
134 public Twitter.Status status { get; }
135 public uint statuses_count { get; }
136 public string time_zone { get; }
137 public string url { get; }
138 public int utc_offset { get; }
139 public virtual signal void changed ();
141 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
142 public class UserList : GLib.Object {
143 [CCode (has_construct_function = false)]
145 [CCode (has_construct_function = false)]
146 public UserList.from_data (string buffer);
147 public unowned GLib.List get_all ();
148 public uint get_count ();
149 public Twitter.User get_id (uint id);
150 public Twitter.User get_pos (int index_);
151 public bool load_from_data (string buffer) throws GLib.Error;
153 [CCode (cprefix = "TWITTER_AUTH_", cheader_filename = "twitter-glib/twitter-glib.h")]
154 public enum AuthState {
160 [CCode (cprefix = "TWITTER_", cheader_filename = "twitter-glib/twitter-glib.h")]
161 public enum Provider {
166 [CCode (cprefix = "TWITTER_ERROR_", cheader_filename = "twitter-glib/twitter-glib.h")]
167 public errordomain Error {
177 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
178 public const string GLIB_API_VERSION_S;
179 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
180 public const int GLIB_MAJOR_VERSION;
181 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
182 public const int GLIB_MICRO_VERSION;
183 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
184 public const int GLIB_MINOR_VERSION;
185 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
186 public const int GLIB_VERSION_HEX;
187 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
188 public const string GLIB_VERSION_S;
189 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
190 public static bool date_to_time_val (string date, out GLib.TimeVal time_);
191 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
192 public static unowned Twitter.Error error_from_status (uint status);
193 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
194 public static GLib.Quark error_quark ();
195 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
196 public static unowned string http_date_from_delta (int seconds);
197 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
198 public static unowned string http_date_from_time_t (ulong time_);
199 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
200 public static int http_date_to_delta (string date);
201 [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
202 public static ulong http_date_to_time_t (string date);