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); }
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; }
public bool Equals(CreateTaskInfo taskInfo) { return(CreateType == taskInfo?.CreateType && SiteId == taskInfo.SiteId && ChannelId == taskInfo.ChannelId && ContentId == taskInfo.ContentId && TemplateId == taskInfo.TemplateId); }