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

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