1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*-------------------------------------------------------------------------
- * 功能描述:ModelFileInformation
- * 作者:xulisong
- * 创建时间: 2019/7/1 11:47:42
- * 版本号:v1.0
- * -------------------------------------------------------------------------*/
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SAGA.RevitUtils.ExtensibleStorage
- {
- /// <summary>
- /// 模型文件信息
- /// </summary>
- public class ModelFileInformation: ICoustomStorage
- {
- public string FileId { get; set; }
- public string ProjectId { get; set; }
- public string Version { get; set; }
- public object GetStorage()
- {
- Dictionary<string, string> dic = new Dictionary<string, string>();
- dic["FileId"] = FileId ?? string.Empty;
- dic["ProjectId"] = ProjectId ?? string.Empty;
- dic["Version"] = Version ?? string.Empty;
- return dic;
- }
- public void SetStorage(object value)
- {
- if (value is IDictionary<string, string> dic)
- {
- this.FileId = dic["FileId"];
- this.ProjectId = dic["ProjectId"];
- this.Version = dic["Version"];
- }
- }
- }
- }
|