Пример #1
0
 /// <summary>
 ///     Create new Freedb with Result
 /// </summary>
 /// <param name="data">Result</param>
 public Freedb(FreedbResult data)
 {
     Data          = data;
     ErrorMessage  = Exceptions.Message;
     ErrorOccurred = Exceptions.ErrorOccurred;
     Response      = Http.LastResponse;
 }
Пример #2
0
        /// <summary>
        ///     Create new Freedb with Result
        /// </summary>
        /// <param name="data">Result</param>
        public Freedb(FreedbResult data)
        {
            if (data.Data == null || data.Data.Count == 0)
            {
                data.Data = new List <FreedbData> {
                    new FreedbData()
                }
            }
            ;

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