google_musicmanager_v0

package
v0.0.0-...-514cedc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2015 License: ISC Imports: 5 Imported by: 0

Documentation

Overview

Package json describes the interface of the JSON calls of Google's Music Manager service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDownloadSessionRequest

type GetDownloadSessionRequest struct {
	XDeviceID string `header:"X-Device-ID"`
	SongID    string `query-parameter:"songid"`
}

type GetDownloadSessionResponse

type GetDownloadSessionResponse struct {
	URL string `json:"url"`
}

type GetUploadSessionRequest

type GetUploadSessionRequest struct {
	Name                      string `convert:"/external/name"`
	UploaderId                string `convert:"/inlined/UploaderId"`
	ClientId                  string `convert:"/inlined/ClientId"`
	ServerId                  string `convert:"/inlined/ServerId"`
	TrackBitRate              int    `convert:"/inlined/TrackBitRate"`
	CurrentUploadingTrack     string `convert:"/inlined/CurrentUploadingTrack"`
	CurrentTotalUploadedCount int    `convert:"/inlined/CurrentTotalUploadedCount"`
	ClientTotalSongCount      int    `convert:"/inlined/ClientTotalSongCount"`
	SyncNow                   bool   `convert:"/inlined/SyncNow"`
	TrackDoNotRematch         bool   `convert:"/inlined/TrackDoNotRematch"`
}

func (*GetUploadSessionRequest) MarshalJSON

func (r *GetUploadSessionRequest) MarshalJSON() ([]byte, error)

type GetUploadSessionResponse

type GetUploadSessionResponse struct {
	UploadId string `convert:"/sessionStatus/upload_id"`
	State    string `convert:"/sessionStatus/state"`

	Error *SessionError `convert:"/errorMessage/additionalInfo/uploader_service.GoogleRupioAdditionalInfo"`

	Status *struct {
		Code                int    `convert:"/customerSpecificInfo/ResponseCode"`
		Message             string `convert:"/status"`
		ServerFileReference string `convert:"/customerSpecificInfo/ServerFileReference"`
	} `convert:"/sessionStatus/additionalInfo/uploader_service.GoogleRupioAdditionalInfo/completionInfo"`

	Transfers []struct {
		Name             string `convert:"/name"`
		Status           string `convert:"/status"`
		PutUrl           string `convert:"/putInfo/url"`
		BytesTransferred int64  `convert:"/bytesTransferred"`
		BytesTotal       int64  `convert:"/bytesTotal"`
	} `convert:"/sessionStatus/externalFieldTransfers"`
}

func (*GetUploadSessionResponse) UnmarshalJSON

func (r *GetUploadSessionResponse) UnmarshalJSON(buf []byte) error

type SessionError

type SessionError struct {
	Code    int    `convert:"/completionInfo/customerSpecificInfo/ResponseCode"`
	Message string `convert:"/requestRejectedInfo/reasonDescription"`
}

func (*SessionError) Error

func (e *SessionError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL