~ricmm/+junk/unity-lens_music-sc

« back to all changes in this revision

Viewing changes to src/track.vala

  • Committer: Ricardo Mendoza
  • Date: 2012-09-05 14:20:15 UTC
  • Revision ID: ricardo.mendoza@canonical.com-20120905142015-prem6hiyfshwgm8q
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Canonical Ltd
 
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 3 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, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored by Alex Launi <alex.launi@canonical.com>
 
17
 *
 
18
 */
 
19
 
 
20
namespace Unity.MusicLens {
 
21
  
 
22
  public enum TrackType
 
23
  {
 
24
    SONG,
 
25
    RADIO
 
26
  }
 
27
 
 
28
  public class Track : GLib.Object
 
29
  {
 
30
    public TrackType type_track { get; set; }
 
31
    public string title { get; set; }
 
32
    public string uri { get; set; }
 
33
    public string artist { get; set; }
 
34
    public string mime_type { get; set; }
 
35
    public string artwork_path { get; set; }
 
36
    public string album { get; set; }
 
37
    public string album_artist { get; set; }
 
38
    public string genre { get; set; }
 
39
    public int track_number { get; set; }
 
40
    public int year { get; set; }
 
41
    public int play_count { get; set; }
 
42
    public int duration { get; set; }
 
43
  }
 
44
}