Пример #1
0
        private WebArtist CreateArtist(XboxArtist xboxArtist)
        {
            var artist = new WebArtist(GetType())
            {
                Name = xboxArtist.Name,
                Token = xboxArtist.Id
            };

            if (xboxArtist.ImageUrl == null)
                artist.IsPartial = true;
            else
                artist.Artwork = new Uri(xboxArtist.ImageUrl);

            return artist;
        }
Пример #2
0
        public const string MainRole = "Main"; // What EDS shows for the primary Artist

        #endregion Fields

        #region Constructors

        public Contributor(string role, XboxArtist artist)
        {
            this.Role = role;
            this.Artist = artist;
        }