~ci-train-bot/account-plugins/account-plugins-ubuntu-yakkety-1992

« back to all changes in this revision

Viewing changes to src/foursquare.vala

  • Committer: Alberto Mardegan
  • Date: 2013-02-22 15:17:49 UTC
  • mto: This revision was merged to the branch mainline in revision 93.
  • Revision ID: alberto.mardegan@canonical.com-20130222151749-980i069e2qqxvb6i
Add a generic OAuth plugin

Remove most of the binaries

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2012 Canonical, Inc
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License version 2 as
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program; if not, write to the Free Software
15
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
16
 
 * USA.
17
 
 *
18
 
 * Authors:
19
 
 *      David King <david.king@canonical.com
20
 
 */
21
 
 
22
 
public class FoursquarePlugin : Ap.OAuthPlugin {
23
 
    public FoursquarePlugin (Ag.Account account) {
24
 
        Object (account: account);
25
 
    }
26
 
 
27
 
    construct
28
 
    {
29
 
        var oauth_params = new HashTable<string, GLib.Value?> (str_hash, null);
30
 
        oauth_params.insert ("ClientId",
31
 
                             "BA0GOA0K3PTRS1KUJ5TTZ1P3GDRH3VJEEXY4N44ROPUJYKPW");
32
 
        set_oauth_parameters (oauth_params);
33
 
    }
34
 
}
35
 
 
36
 
public GLib.Type ap_module_get_object_type ()
37
 
{
38
 
    return typeof (FoursquarePlugin);
39
 
}