public LastFmImage(string imageSizeString, string url) { LastFmImageSize imageSize; if (imageSizeString.Length == 0 || !Enum.TryParse(imageSizeString.ToUpper(), out imageSize)) { imageSize = LastFmImageSize.DEFAULT; } this.ImageSize = imageSize; this.Url = url; }
public LastFmImage(LastFmImageSize imageSize, string url) { this.ImageSize = imageSize; this.Url = url; }