using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IStation.Bimface { /// /// 发起文件转化的请求数据 /// public class FileTranslateRequest { public FileTranslateRequest() { this.priority = 2; this.callback = null; } public TranslateSource source { get; set; } /// /// 优先级,数字越大,优先级越低。只能是1, 2, 3。默认为2 /// public int priority { get; set; } /// /// Callback地址,待转换完毕以后,BIMFace会回调该地址 /// public string callback { get; set; } /// /// 获取JSON字典 /// /// public virtual Dictionary GetJsonDict() { var dic = new Dictionary(); dic.Add("source", this.source == null ? null : this.source.GetJsonDict()); dic.Add("priority", this.priority); dic.Add("callback", this.callback); return dic; } } }