TaskNotification
类名:TaskNotification
说明:任务通知,当收到新任务或任务需要提醒时进行通知。
属性
| 名称 |
说明 |
TaskId |
任务的 Id |
Name |
任务名称 |
Summary |
任务摘要 |
SchemaCode |
任务绑定的业务对象模式编码 |
TargetType |
任务绑定的业务对象模式编码 |
TargetId |
任务链接的目标的 Id |
Sender |
发送者 |
Receiver |
接收者 |
SchemaCode |
表单编码 |
BizObjectId |
关联的业务数据 ID |
构造函数
方法定义
```csharp
///
/// 任务通知的构造函数
///
/// 如果是新任务通知则为 true,如果是其他任务通知(如任务到期通知)则为 false
/// 发送方,通常是任务的创建人
/// 接收方
/// 任务的 Id
/// 任务名称
/// 任务摘要
/// 任务绑定的业务对象模式编码
/// 任务链接的目标类型
/// 任务链接的目标的 Id
public TaskNotification(
bool isNew,
string sender,
string receiver,
string taskId,
string name,
string summary,
string schemaCode,
LinkTargetType targetType,
string targetId);
///
/// 消息提醒通知的构造函数
///
/// 如果是新任务通知则为 true,如果是其他任务通知(如任务到期通知)则为 false
/// 发送方,通常是任务的创建人
/// 接收方
/// 任务的 Id
/// 任务名称
/// 任务摘要
/// 任务绑定的业务对象模式编码
/// 任务链接的目标类型
/// 任务链接的目标的 Id
/// 消息产生来源
public TaskNotification(
bool isNew,
string sender,
string receiver,
string taskId,
string name,
string summary,
string schemaCode,
LinkTargetType targetType,
string targetId,
UserMessageOriginType originType);
///
/// 任务通知的构造函数
///
/// 如果是新任务通知则为 true,如果是其他任务通知(如任务到期通知)则为 false
/// 发送方,通常是任务的创建人
/// 接收方
/// 任务的 Id
/// 任务名称
/// 任务摘要
/// 任务绑定的业务对象模式编码
/// 任务链接的目标类型
/// 任务链接的目标的 Id
/// 任务消息打开类型
/// 任务消息来源
public TaskNotification(
bool isNew,
string sender,
string receiver,
string taskId,
string name,
string summary,
string schemaCode,
LinkTargetType targetType,
string targetId,
TaskOpenedType taskOpenType,
UserMessageOriginType originType);