/// <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; }
/// <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; } }