/// <summary>
 ///     Create new Cdstub with Result
 /// </summary>
 /// <param name="data">Result</param>
 public Cdstub(CdstubResult data)
 {
     Data          = data;
     ErrorMessage  = Exceptions.Message;
     ErrorOccurred = Exceptions.ErrorOccurred;
     Response      = Http.LastResponse;
 }
Beispiel #2
0
        /// <summary>
        ///     Create new Cdstub with Result
        /// </summary>
        /// <param name="data">Result</param>
        public Cdstub(CdstubResult data)
        {
            if (data.Data == null || data.Data.Count == 0)
            {
                data.Data = new List <CdstubData> {
                    new CdstubData()
                }
            }
            ;

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