コード例 #1
0
 public bool Equals(CreateTaskInfo taskInfo)
 {
     if (taskInfo == null)
     {
         return(false);
     }
     if (CreateType != taskInfo.CreateType || PublishmentSystemID != taskInfo.PublishmentSystemID || ChannelID != taskInfo.ChannelID || ContentID != taskInfo.ContentID || TemplateID != taskInfo.TemplateID)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 public CreateTaskSummaryItem(CreateTaskInfo taskInfo, string timeSpan, bool isExecuting, bool isPending, bool isSuccess, string errorMessage)
 {
     siteId            = taskInfo.SiteId;
     channelId         = taskInfo.ChannelId;
     contentId         = taskInfo.ContentId;
     templateId        = taskInfo.TemplateId;
     type              = ECreateTypeUtils.GetText(taskInfo.CreateType);
     name              = taskInfo.Name;
     this.timeSpan     = timeSpan;
     this.isExecuting  = isExecuting;
     this.isPending    = isPending;
     this.isSuccess    = isSuccess;
     this.errorMessage = errorMessage;
 }
コード例 #3
0
 public bool Equals(CreateTaskInfo taskInfo)
 {
     return(CreateType == taskInfo?.CreateType && SiteId == taskInfo.SiteId && ChannelId == taskInfo.ChannelId && ContentId == taskInfo.ContentId && TemplateId == taskInfo.TemplateId);
 }