Пример #1
0
        /// <summary>
        /// 群发朋友圈
        /// </summary>
        public IList <Task> BatchSendFriendCircle(AutoServiceInfoViewModel viewModel)
        {
            return(_baseAction.CommonAction <UploadFilesToPhoneViewModel>(viewModel.Devices, (item) =>
            {
                var currentViewModel = _baseAction.UploadToPhine(

                    new UploadFilesToPhoneViewModel()
                {
                    Device = item.Device,

                    Path = viewModel.Path,

                    PublishContentType = viewModel.PublishContentType
                });

                SendFriendCircle(currentViewModel);
            }));
        }
Пример #2
0
        /// <summary>
        /// 批量发布信息
        /// </summary>
        public IList <Task> BatchPublishMessageinfo(AutoServiceInfoViewModel viewModel)
        {
            return(baseAction.CommonAction <IdleFishActionViewModel>(viewModel.Devices, (currentData) =>
            {
                var currentViewModel = baseAction.UploadToPhine(new UploadFilesToPhoneViewModel()
                {
                    Device = currentData.Device,
                    Path = viewModel.Path,
                    PublishContentType = viewModel.PublishContentType
                });

                currentData.Title = viewModel.AutoServiceInfoModel.SayHelloContent;

                currentData.Description = viewModel.AutoServiceInfoModel.RemarkContent;

                currentData.Price = viewModel.AutoServiceInfoModel.AddCount;

                SinglePublishMessageInfo(currentData, currentViewModel);
            }));
        }