Files
5.24BuYu/Assets/MyGame/Scripts/Net/APIRequest/Objs/CustomerObjs.cs
T

93 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIRequest.Objs
{
/// <summary>
/// 发起会话请求对象(POST)
/// </summary>
public class StartConversationObj : RequestObjBase
{
/// <summary>
/// 用户ID
/// </summary>
public string userId;
/// <summary>
/// 用户名称
/// </summary>
public string userName;
}
/// <summary>
/// 发送消息请求对象(POST)
/// </summary>
public class SendMessageObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
/// <summary>
/// 发送者类型(1:用户 2:客服)
/// </summary>
public int senderType;
/// <summary>
/// 发送者ID
/// </summary>
public string senderId;
/// <summary>
/// 发送者名称
/// </summary>
public string senderName;
/// <summary>
/// 发送者头像
/// </summary>
public string senderAvatar;
/// <summary>
/// 内容类型(1:文字 2:图片)
/// </summary>
public int contentType;
/// <summary>
/// 消息内容(文字内容或图片URL)
/// </summary>
public string content;
}
/// <summary>
/// 结束会话请求对象(POST)
/// </summary>
public class EndConversationObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
}
/// <summary>
/// 更新客服状态请求对象(POST)
/// </summary>
public class UpdateCustomerStatusObj : RequestObjBase
{
/// <summary>
/// 客服用户ID
/// </summary>
public string userId;
/// <summary>
/// 状态(0:离线 1:在线)
/// </summary>
public int status;
}
}