64 lines
2.1 KiB
C#
64 lines
2.1 KiB
C#
using Api.Framework.Enums;
|
||
using Api.Framework.Model;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Api.Framework.Events
|
||
{
|
||
|
||
/// <summary>
|
||
/// 订单通知事件
|
||
/// </summary>
|
||
public class OrderNoticeEvent : BaseEvents
|
||
{
|
||
/// <summary>
|
||
/// 订单 父类(base_model_order): 强转为原始的订单类型,如阿里妈妈 fl_order_alimama ...
|
||
/// </summary>
|
||
public object Order { get; private set; }
|
||
|
||
/// <summary>
|
||
/// 联盟类型
|
||
/// </summary>
|
||
public CpsType ChatType { get; private set; }
|
||
|
||
/// <summary>
|
||
/// 事件触发人
|
||
/// </summary>
|
||
public fl_member_info Member { get; private set; }
|
||
|
||
/// <summary>
|
||
/// 消费者 - 客户信息 注:通知类型(OrderNoticeType)为客户订单时,改对象为空;为其他类型,该值为订单所属者
|
||
/// </summary>
|
||
public fl_member_info Customer { get; internal set; }
|
||
|
||
/// <summary>
|
||
/// 【Customer为null,IsRewards为true(订单拥有者完成首单奖励规则);Customer不为null,IsRewards为true(上级完成首单并且符合推荐奖励规则)】
|
||
/// </summary>
|
||
public bool IsRewards { get; internal set; }
|
||
|
||
/// <summary>
|
||
/// 通知类型
|
||
/// </summary>
|
||
public OrderNoticeType OrderNoticeType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 构造方法
|
||
/// </summary>
|
||
/// <param name="chatType">cps类型</param>
|
||
/// <param name="member">用户对象</param>
|
||
/// <param name="order">订单对象</param>
|
||
/// <param name="noticeType">订单所属</param>
|
||
public OrderNoticeEvent(CpsType chatType, fl_member_info member, object order, OrderNoticeType noticeType = OrderNoticeType.客户订单)
|
||
{
|
||
this.Order = order;
|
||
this.ChatType = chatType;
|
||
this.OrderNoticeType = noticeType;
|
||
this.Member = member;
|
||
this.IsRewards = false;
|
||
}
|
||
}
|
||
}
|