private void AssignVideoPathList(PatrolDtoUI patrolDtoUiObj, string[] videoPathList)
 {
     if (patrolDtoUiObj != null && videoPathList != null)
     {
         patrolDtoUiObj.VideoPathList = new List <string>(videoPathList);
     }
 }
 private void AssignImagePathList(PatrolDtoUI patrolDtoUiObj, string[] imagePathList)
 {
     if (patrolDtoUiObj != null && imagePathList != null)
     {
         patrolDtoUiObj.ImagePathList = new List <string>(imagePathList);
     }
 }
        private void GetImagesAndVideosForAssignedPatrols()
        {
            if (AssignedPatrols != null && AssignedPatrols.Count > 0)
            {
                AssignedPatrolsUI = new ObservableCollection <PatrolDtoUI>();
                foreach (var patrol in AssignedPatrols)
                {
                    if (patrol != null)
                    {
                        PatrolDtoUI patrolUI = new PatrolDtoUI()
                        {
                            PatrolDtoObj = patrol
                        };

                        if (patrolUI.PatrolDtoObj.CurrentTaskId != 0)
                        {
                            try
                            {
                                //var imagePathListRes = tfmClient.GetTaskImagesURLsAsync(patrolUI.PatrolDtoObj.CurrentTaskId);
                                var imagePathListRes = tfmClient.GetTaskImagesURLsAsync(patrolUI.PatrolDtoObj.CurrentTaskId);
                                imagePathListRes.ContinueWith(x => AssignImagePathList(patrolUI, imagePathListRes.Result));

                                //var videoPathListRes = tfmClient.GetTaskVideosURLsAsync(patrolUI.PatrolDtoObj.CurrentTaskId);
                                var videoPathListRes = tfmClient.GetTaskVideosURLsTestAsync(patrolUI.PatrolDtoObj.CurrentTaskId);
                                videoPathListRes.ContinueWith(x => AssignVideoPathList(patrolUI, videoPathListRes.Result));
                            }
                            catch (Exception ex)
                            {
                            }
                        }

                        AssignedPatrolsUI.Add(patrolUI);
                    }
                }
            }
        }