Esempio n. 1
0
        public void Insert(UserDataContext udc, bool addToConverterQueue)
        {
            if (OriginalLocation.Length == 0)
            {
                throw new SiemeArgumentException("DataObjectVideo", "Insert", "OriginalLocation", "OriginalLocation is missing");
            }

            if (UserEmail.Length == 0)
            {
                throw new SiemeArgumentException("DataObjectVideo", "Insert", "UserEmail", "UserEmail is missing");
            }

            base.Insert(udc);
            if (addToConverterQueue)
            {
                Business.ConvertQueue objQueue = new ConvertQueue();
                objQueue.ObjectID   = ObjectID;
                objQueue.ObjectType = Helper.GetObjectTypeNumericID("Video");
                objQueue.Status     = MediaConvertedState.NotConvertet;
                objQueue.VideoPreviewPictureTimepointSec = VideoPreviewPictureTimepointSec;
                objQueue.UserEmail            = UserEmail;
                objQueue.EstimatedWorkTimeSec = EstimatedWorkTimeSec;
                objQueue.Insert();
            }
        }
Esempio n. 2
0
 public void AddToConverterQueue()
 {
     Business.ConvertQueue objQueue = new ConvertQueue();
     objQueue.ObjectID   = ObjectID;
     objQueue.ObjectType = Helper.GetObjectType("Video").NumericId;
     objQueue.Status     = MediaConvertedState.NotConvertet;
     objQueue.VideoPreviewPictureTimepointSec = VideoPreviewPictureTimepointSec;
     objQueue.UserEmail            = UserEmail;
     objQueue.EstimatedWorkTimeSec = EstimatedWorkTimeSec;
     objQueue.Insert();
 }
Esempio n. 3
0
 public void Update(UserDataContext udc, bool reconvert)
 {
     if (reconvert)
     {
         ShowState = ObjectShowState.ConversionFailed;
         Image     = string.Empty;
         Business.ConvertQueue objQueue = new ConvertQueue();
         objQueue.ObjectID   = ObjectID;
         objQueue.ObjectType = Helper.GetObjectTypeNumericID("Video");
         objQueue.Status     = MediaConvertedState.NotConvertet;
         objQueue.VideoPreviewPictureTimepointSec = VideoPreviewPictureTimepointSec;
         objQueue.UserEmail            = UserEmail;
         objQueue.EstimatedWorkTimeSec = EstimatedWorkTimeSec;
         objQueue.Insert();
     }
     base.Update(udc);
 }