Exemple #1
0
        public bool Add(Hyland.Unity.WorkView.Object wvObject)
        {
            if (wvObject == null)
            {
                throw new ArgumentNullException(nameof(wvObject));
            }

            var item = WorkViewObjectConvert.DeserializeWorkViewObject <T>(wvObject);

            return(Add(item, wvObject.ID, wvObject.RevisionDate));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="wvObject"></param>
        /// <param name="infoStatus"></param>
        public CustomObject(Hyland.Unity.WorkView.Object wvObject, InfoStatus infoStatus = InfoStatus.Ignore)
        {
            if (wvObject == null)
            {
                throw new ArgumentNullException(nameof(wvObject));
            }

            _item = WorkViewObjectConvert.DeserializeWorkViewObject <T>(wvObject);

            ObjectId     = wvObject.ID;
            RevisionDate = wvObject.RevisionDate;
            _status      = infoStatus;
        }
Exemple #3
0
 public static object ToClass(this Hyland.Unity.WorkView.Object wvObject, Type type)
 {
     return(WorkViewObjectConvert.DeserializeWorkViewObject(wvObject, type));
 }