示例#1
0
 internal ResourceStruct Clone()
 {
     var rs = new ResourceStruct
         {
             Description = this.Description,
             Height = this.Height,
             ID = this.ID,
             OriginalSource = this.OriginalSource,
             OwnerTvmID = this.OwnerTvmID,
             RType = this.RType,
             Source = this.Source,
             SubmitTime = this.SubmitTime,
             Tag = this.Tag,
             Title = this.Title,
             Type = this.Type,
             Width = this.Width,
         };
     return rs;
 }
示例#2
0
 /// <summary>
 /// 上传交流 并 推送
 /// </summary>
 /// <param name="rs"></param>
 /// <param name="receivers"></param>
 /// <returns></returns>
 public static bool PushFile(ResourceStruct rs, string[] receivers)
 {
     var value = new Dictionary<string, object>
     {
             {"receiver", receivers},
             {"detail", rs},
     };
     return sendInterprocessMsg(CmdType.PushFile, null, value, null);
 }