Exemple #1
0
 /// <summary>
 ///     Create new Releasegroup with Result
 /// </summary>
 /// <param name="data">Result</param>
 public Releasegroup(ReleasegroupResult data)
 {
     Data          = data;
     ErrorMessage  = Exceptions.Message;
     ErrorOccurred = Exceptions.ErrorOccurred;
     Response      = Http.LastResponse;
 }
        /// <summary>
        ///     Create new Releasegroup with Result
        /// </summary>
        /// <param name="data">Result</param>
        public Releasegroup(ReleasegroupResult data)
        {
            if (data.Data == null || data.Data.Count == 0)
            {
                data.Data = new List <ReleasegroupData> {
                    new ReleasegroupData()
                }
            }
            ;

            Data     = data;
            Response = Http.LastResponse;
        }
    }