ncm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecoder

func NewDecoder(data []byte) common.Decoder

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func (*Decoder) Decode

func (d *Decoder) Decode() error

func (Decoder) GetAudioData

func (d Decoder) GetAudioData() []byte

func (Decoder) GetAudioExt

func (d Decoder) GetAudioExt() string

func (Decoder) GetCoverImage

func (d Decoder) GetCoverImage() []byte

func (Decoder) GetMeta

func (d Decoder) GetMeta() common.Meta

func (*Decoder) Validate

func (d *Decoder) Validate() error

type RawMeta

type RawMeta interface {
	common.Meta
	GetFormat() string
	GetAlbumImageURL() string
}

type RawMetaDJ

type RawMetaDJ struct {
	ProgramID          int          `json:"programId"`
	ProgramName        string       `json:"programName"`
	MainMusic          RawMetaMusic `json:"mainMusic"`
	DjID               int          `json:"djId"`
	DjName             string       `json:"djName"`
	DjAvatarURL        string       `json:"djAvatarUrl"`
	CreateTime         int64        `json:"createTime"`
	Brand              string       `json:"brand"`
	Serial             int          `json:"serial"`
	ProgramDesc        string       `json:"programDesc"`
	ProgramFeeType     int          `json:"programFeeType"`
	ProgramBuyed       bool         `json:"programBuyed"`
	RadioID            int          `json:"radioId"`
	RadioName          string       `json:"radioName"`
	RadioCategory      string       `json:"radioCategory"`
	RadioCategoryID    int          `json:"radioCategoryId"`
	RadioDesc          string       `json:"radioDesc"`
	RadioFeeType       int          `json:"radioFeeType"`
	RadioFeeScope      int          `json:"radioFeeScope"`
	RadioBuyed         bool         `json:"radioBuyed"`
	RadioPrice         int          `json:"radioPrice"`
	RadioPurchaseCount int          `json:"radioPurchaseCount"`
}

func (RawMetaDJ) GetAlbum

func (m RawMetaDJ) GetAlbum() string

func (RawMetaDJ) GetAlbumImageURL

func (m RawMetaDJ) GetAlbumImageURL() string

func (RawMetaDJ) GetArtists

func (m RawMetaDJ) GetArtists() []string

func (RawMetaDJ) GetFormat

func (m RawMetaDJ) GetFormat() string

func (RawMetaDJ) GetTitle

func (m RawMetaDJ) GetTitle() string

type RawMetaMusic

type RawMetaMusic struct {
	Format        string          `json:"format"`
	MusicID       int             `json:"musicId"`
	MusicName     string          `json:"musicName"`
	Artist        [][]interface{} `json:"artist"`
	Album         string          `json:"album"`
	AlbumID       int             `json:"albumId"`
	AlbumPicDocID interface{}     `json:"albumPicDocId"`
	AlbumPic      string          `json:"albumPic"`
	MvID          int             `json:"mvId"`
	Flag          int             `json:"flag"`
	Bitrate       int             `json:"bitrate"`
	Duration      int             `json:"duration"`
	Alias         []interface{}   `json:"alias"`
	TransNames    []interface{}   `json:"transNames"`
}

func (RawMetaMusic) GetAlbum

func (m RawMetaMusic) GetAlbum() string

func (RawMetaMusic) GetAlbumImageURL

func (m RawMetaMusic) GetAlbumImageURL() string

func (RawMetaMusic) GetArtists

func (m RawMetaMusic) GetArtists() (artists []string)

func (RawMetaMusic) GetFormat

func (m RawMetaMusic) GetFormat() string

func (RawMetaMusic) GetTitle

func (m RawMetaMusic) GetTitle() string

Jump to

Keyboard shortcuts

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