Esempio n. 1
0
 /// <summary>
 ///     Create new Artist with Result
 /// </summary>
 /// <param name="data">Result</param>
 public Artist(ArtistResult data)
 {
     Data          = data;
     ErrorMessage  = Exceptions.Message;
     ErrorOccurred = Exceptions.ErrorOccurred;
     Response      = Http.LastResponse;
 }
Esempio n. 2
0
        /// <summary>
        ///     Create new Artist with Result
        /// </summary>
        /// <param name="data">Result</param>
        public Artist(ArtistResult data)
        {
            if (data.Data == null || data.Data.Count == 0)
            {
                data.Data = new List <ArtistData> {
                    new ArtistData()
                }
            }
            ;

            Data          = data;
            ErrorMessage  = Exceptions.Message;
            ErrorOccurred = Exceptions.ErrorOccurred;
            Response      = Http.LastResponse;
        }
    }