~renatofilho/account-polld/query-calendars

« back to all changes in this revision

Viewing changes to plugins/gmail/plugin.go

  • Committer: Sergio Schvezov
  • Date: 2014-07-11 17:51:21 UTC
  • mfrom: (1.1.7 daemon)
  • Revision ID: sergio.schvezov@canonical.com-20140711175121-58zw4krnvbhf2lf7
Bootstrapping project layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright 2014 Canonical Ltd.
 
3
 Authors: Sergio Schvezov <sergio.schvezov@canonical.com>
 
4
 
 
5
 This program is free software: you can redistribute it and/or modify it
 
6
 under the terms of the GNU General Public License version 3, as published
 
7
 by the Free Software Foundation.
 
8
 
 
9
 This program is distributed in the hope that it will be useful, but
 
10
 WITHOUT ANY WARRANTY; without even the implied warranties of
 
11
 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
12
 PURPOSE.  See the GNU General Public License for more details.
 
13
 
 
14
 You should have received a copy of the GNU General Public License along
 
15
 with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
*/
 
17
 
 
18
package gmail
 
19
 
 
20
import "launchpad.net/account-polld/plugins"
 
21
 
 
22
const APP_ID = "com.ubuntu.developer.webapps.webapp-gmail"
 
23
 
 
24
type GmailPlugin struct {
 
25
}
 
26
 
 
27
func New() *GmailPlugin {
 
28
        return &GmailPlugin{}
 
29
}
 
30
 
 
31
func (p *GmailPlugin) Poll(tokens plugins.AuthTokens) (*[]plugins.Notification, error) {
 
32
        return nil, nil
 
33
}
 
34
 
 
35
func (p *GmailPlugin) ApplicationId() plugins.ApplicationId {
 
36
        return plugins.ApplicationId(APP_ID)
 
37
}