using Container.Common;
using Container.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Transitionals;
namespace Container.Business
{
public class PlayBackManage
{
private JService jService = new JService();
private OutLine outLine = OutLine.CreateInstance();
//private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Class_Log log = new Class_Log();
App app = ((App)System.Windows.Application.Current);
///
/// 获取后台图片或视频资源地址
///
public List GetResource()
{
//Action ac = new Action(() =>//静默下载离线文件
//{
// log.WriteLogFile("GetResource()下载离线文件", "exelog");
// bool flag= jService.GetOutLineResource();
//});
//ac.BeginInvoke(null, null);
return outLine.LoadScreenConfig();
}
public void DownResource() {
Action ac = new Action(() =>//静默下载离线文件
{
log.WriteLogFile("GetResource()下载离线文件", "exelog");
app.isStartGetProg = true;
bool flag = jService.GetOutLineResource();
});
ac.BeginInvoke(null, null);
}
/////
///// 获取屏保切换间隔
/////
/////
//public int GetInterval()
//{
// return jService.GetInterval();
//}
}
}