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

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