-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Developer' of https://github.com/JeffreySu/WeiXinMPSDK …
…into Developer
- Loading branch information
Showing
9 changed files
with
403 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 156 additions & 0 deletions
156
...eixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_External_Tag.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/*---------------------------------------------------------------- | ||
Copyright (C) 2023 XiaoPoTian | ||
文件名:RequestMessageEvent_Change_External_Tag_Base.cs | ||
文件功能描述:企业客户标签或标签组事件 | ||
创建标识:XiaoPoTian - 20231119 | ||
----------------------------------------------------------------*/ | ||
|
||
using System; | ||
|
||
namespace Senparc.Weixin.Work.Entities | ||
{ | ||
/// <summary> | ||
/// 企业客户标签或标签组事件 | ||
/// </summary> | ||
public class RequestMessageEvent_Change_External_Tag_Base : RequestMessageEventBase, IRequestMessageEventBase | ||
{ | ||
public override Event Event | ||
{ | ||
get { return Event.CHANGE_EXTERNAL_TAG; } | ||
} | ||
|
||
/// <summary> | ||
/// 标签或标签组ID | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// 标签或标签组所属的规则组id,只回调给“客户联系”应用 | ||
/// </summary> | ||
public string StrategyId { get; set; } | ||
/// <summary> | ||
/// 具体事件类型 | ||
/// </summary> | ||
public virtual ExternalTagChangeType ChangeType { get { return ExternalTagChangeType.create; } } | ||
} | ||
|
||
/// <summary> | ||
/// 企业客户标签创建 | ||
/// </summary> | ||
public class RequestMessageEvent_Change_External_Tag_Create : RequestMessageEvent_Change_External_Tag_Base | ||
{ | ||
/// <summary> | ||
/// 变更类型 | ||
/// </summary> | ||
public ExternalTagChangeTagType TagType { get; set; } | ||
/// <summary> | ||
/// TagType类型初始化 | ||
/// </summary> | ||
/// <param name="TagTypeStr"></param> | ||
public RequestMessageEvent_Change_External_Tag_Create(string TagTypeStr) | ||
{ | ||
TagType = (ExternalTagChangeTagType)Enum.Parse(typeof(ExternalTagChangeTagType), TagTypeStr, true); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 企业客户标签变更 | ||
/// </summary> | ||
public class RequestMessageEvent_Change_External_Tag_Update : RequestMessageEvent_Change_External_Tag_Base | ||
{ | ||
/// <summary> | ||
/// 变更类型 | ||
/// </summary> | ||
public ExternalTagChangeTagType TagType { get; set; } | ||
// <summary> | ||
/// TagType类型初始化 | ||
/// </summary> | ||
/// <param name="TagTypeStr"></param> | ||
public RequestMessageEvent_Change_External_Tag_Update(string TagTypeStr) | ||
{ | ||
TagType = (ExternalTagChangeTagType)Enum.Parse(typeof(ExternalTagChangeTagType), TagTypeStr, true); | ||
} | ||
/// <summary> | ||
/// 重写具体事件类型 | ||
/// </summary> | ||
public override ExternalTagChangeType ChangeType => ExternalTagChangeType.update; | ||
|
||
} | ||
|
||
/// <summary> | ||
/// 企业客户标签删除 | ||
/// </summary> | ||
public class RequestMessageEvent_Change_External_Tag_Delete : RequestMessageEvent_Change_External_Tag_Base | ||
{ | ||
/// <summary> | ||
/// 变更类型 | ||
/// </summary> | ||
public ExternalTagChangeTagType TagType { get; set; } | ||
// <summary> | ||
/// TagType类型初始化 | ||
/// </summary> | ||
/// <param name="TagTypeStr"></param> | ||
public RequestMessageEvent_Change_External_Tag_Delete(string TagTypeStr) | ||
{ | ||
TagType = (ExternalTagChangeTagType)Enum.Parse(typeof(ExternalTagChangeTagType), TagTypeStr, true); | ||
} | ||
/// <summary> | ||
/// 重写具体事件类型 | ||
/// </summary> | ||
public override ExternalTagChangeType ChangeType => ExternalTagChangeType.delete; | ||
} | ||
|
||
/// <summary> | ||
/// 企业客户标签重排 | ||
/// </summary> | ||
public class RequestMessageEvent_Change_External_Tag_Shuffle : RequestMessageEvent_Change_External_Tag_Base | ||
{ | ||
/// <summary> | ||
/// 重写具体事件类型 | ||
/// </summary> | ||
public override ExternalTagChangeType ChangeType => ExternalTagChangeType.shuffle; | ||
} | ||
|
||
|
||
/// <summary> | ||
/// 具体的事件类型 | ||
/// </summary> | ||
public enum ExternalTagChangeType | ||
{ | ||
/// <summary> | ||
/// 创建 | ||
/// </summary> | ||
create, | ||
/// <summary> | ||
/// 更新 | ||
/// </summary> | ||
update, | ||
/// <summary> | ||
/// 删除 | ||
/// </summary> | ||
delete, | ||
/// <summary> | ||
/// 重新排序 | ||
/// </summary> | ||
shuffle, | ||
} | ||
|
||
/// <summary> | ||
/// 变更类型 | ||
/// </summary> | ||
public enum ExternalTagChangeTagType | ||
{ | ||
/// <summary> | ||
/// 变更标签 | ||
/// </summary> | ||
tag, | ||
/// <summary> | ||
/// 变更标签组 | ||
/// </summary> | ||
tag_group, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.