aboutsummaryrefslogtreecommitdiffstats
path: root/data.go
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-11-24 21:46:30 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2016-11-24 21:46:30 -0500
commitfc0f5810f93b6406aa23780bd9357c8169070cb2 (patch)
tree7a8c933cfb2cfe404129ea5df090a90434d05896 /data.go
parentf7a85af3fc9065d15ec9fd3084252351ff598035 (diff)
downloadlastfm-api-fc0f5810f93b6406aa23780bd9357c8169070cb2.tar.gz
json and xml marshalling almost working
Diffstat (limited to 'data.go')
-rw-r--r--data.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/data.go b/data.go
index a844630..3327ca4 100644
--- a/data.go
+++ b/data.go
@@ -12,14 +12,14 @@ import (
type Scrobble struct {
Artist Correctable `xml:"artist" json:"artist"`
AlbumArtist Correctable `xml:"albumArtist" json:"albumArtist"`
- TrackName Correctable `xml:"track" json:"albumArtist"`
- Album Correctable `xml:"album" json:album"`
- TrackNumber int
- Duration int
- Time int
- Chosen bool
- Mbid string
- Session string
+ TrackName Correctable `xml:"track" json:"track"`
+ Album Correctable `xml:"album" json:"album"`
+ TrackNumber int `xml:"-" json:"-"`
+ Duration int `xml:"-" json:"-"`
+ Time int `xml:"timestamp" json:"timestamp,string"`
+ Chosen bool `xml:"-" json:"-"`
+ Mbid string `xml:"-" json:"-"`
+ Session string `xml:"-" json:"-"`
}
type Session struct {