コード例 #1
0
ファイル: MatchSong.cs プロジェクト: quynb90/Audiotica
 public MatchSong(NeteaseDetailSong neteaseSong)
 {
     Id       = neteaseSong.Id.ToString();
     Title    = neteaseSong.Name;
     Artist   = neteaseSong.Artists.FirstOrDefault().Name;
     AudioUrl = neteaseSong.Mp3Url;
     Duration = TimeSpan.FromMilliseconds(neteaseSong.Duration);
     BitRate  = neteaseSong.BMusic.Bitrate;
     ByteSize = neteaseSong.BMusic.Size;
 }
コード例 #2
0
ファイル: WebSong.cs プロジェクト: yakuz-a/Airstem
 public WebSong(NeteaseDetailSong neteaseSong)
 {
     Id             = neteaseSong.Id.ToString();
     Name           = neteaseSong.Name;
     Artist         = neteaseSong.Artists.FirstOrDefault().Name;
     AudioUrl       = neteaseSong.Mp3Url;
     Provider       = Mp3Provider.Netease;
     Duration       = TimeSpan.FromMilliseconds(neteaseSong.Duration);
     ProviderNumber = 12;
     //BitRate = neteaseSong.BMusic.Bitrate;
     //ByteSize = neteaseSong.BMusic.Size;
 }