303 lines
8.7 KiB
C#
303 lines
8.7 KiB
C#
using Microsoft.VisualBasic;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Crm.Core.Domain.Dto.Live
|
||
{
|
||
public class LiveUserSummayDataDto
|
||
{
|
||
public LiveUserSummayDataDto(string app_id,string c_appid,string c_appuserid, string appuserid, string city, string country, long? customerid, string deptName,
|
||
long? deptid, long? eid, string employeeName, string endTime, string headimgurl, string ip, string livingId, string nickname,
|
||
string province, string resid, long scheduleid, object selfDeptid, object selfEid, string startTime, string title, string totalWatchTime,
|
||
string updateTime, long userType, string watchDays, int? inviterEid,int? isBelong,int? isWework,int? interaction,int interact_num)
|
||
{
|
||
app_id = app_id;
|
||
c_appid = c_appid;
|
||
c_appuserid = c_appuserid;
|
||
Interaction = interaction;
|
||
InteractNum = interact_num;
|
||
Appuserid = appuserid;
|
||
City = city;
|
||
Country = country;
|
||
Customerid = customerid;
|
||
DeptName = deptName;
|
||
Deptid = deptid;
|
||
Eid = eid;
|
||
EmployeeName = employeeName;
|
||
IsBelong = isBelong;
|
||
IsWework = isWework;
|
||
EndTime = endTime;
|
||
Headimgurl = headimgurl;
|
||
Ip = ip;
|
||
LivingId = livingId;
|
||
Nickname = nickname;
|
||
Province = province;
|
||
Resid = resid;
|
||
Scheduleid = scheduleid;
|
||
SelfDeptid = selfDeptid;
|
||
SelfEid = selfEid;
|
||
StartTime = startTime;
|
||
Title = title;
|
||
TotalWatchTime = totalWatchTime;
|
||
UpdateTime = updateTime;
|
||
UserType = userType;
|
||
WatchDays = watchDays;
|
||
InviterEid = inviterEid;
|
||
}
|
||
|
||
public LiveUserSummayDataDto()
|
||
{ }
|
||
|
||
/// <summary>
|
||
/// 应用ID
|
||
/// </summary>
|
||
[JsonPropertyName("app_id")]
|
||
public string app_id { get; set; }
|
||
/// <summary>
|
||
/// 应用ID(无resid时用作查线索)
|
||
/// </summary>
|
||
[JsonPropertyName("c_appid")]
|
||
public string c_appid { get; set; }
|
||
/// <summary>
|
||
/// 应用用户账号(无resid时用作查线索)
|
||
/// </summary>
|
||
[JsonPropertyName("c_appuserid")]
|
||
public string c_appuserid { get; set; }
|
||
/// <summary>
|
||
/// 直播中互动,1:有,0:无
|
||
/// </summary>
|
||
[JsonPropertyName("interaction")]
|
||
public int? Interaction { get; set; }
|
||
/// <summary>
|
||
/// 直播中互动,1:有,0:无
|
||
/// </summary>
|
||
[JsonPropertyName("interact_num")]
|
||
public int? InteractNum { get; set; }
|
||
/// <summary>
|
||
/// 企微应用
|
||
/// </summary>
|
||
[JsonPropertyName("app_name")]
|
||
public string AppName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 应用用户账号
|
||
/// </summary>
|
||
[JsonPropertyName("appuserid")]
|
||
public string Appuserid { get; set; }
|
||
/// <summary>
|
||
/// 好友关系 1:是,0:否
|
||
/// </summary>
|
||
[JsonPropertyName("is_wework")]
|
||
public int? IsWework { get; set; }
|
||
/// <summary>
|
||
/// 城市
|
||
/// </summary>
|
||
[JsonPropertyName("city")]
|
||
public string City { get; set; }
|
||
|
||
/// <summary>
|
||
/// 国家
|
||
/// </summary>
|
||
[JsonPropertyName("country")]
|
||
public string Country { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户主账号
|
||
/// </summary>
|
||
[JsonPropertyName("customerid")]
|
||
public long? Customerid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 部门名称
|
||
/// </summary>
|
||
[JsonPropertyName("dept_name")]
|
||
public string DeptName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 员工部门ID
|
||
/// </summary>
|
||
[JsonPropertyName("deptid")]
|
||
public long? Deptid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 员工工号
|
||
/// </summary>
|
||
[JsonPropertyName("eid")]
|
||
public long? Eid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 员工名称
|
||
/// </summary>
|
||
[JsonPropertyName("employee_name")]
|
||
public string EmployeeName { get; set; }
|
||
/// <summary>
|
||
/// 是否属于归属 1 是 0 否
|
||
/// </summary>
|
||
[JsonPropertyName("is_belong")]
|
||
public int? IsBelong { get; set; }
|
||
/// <summary>
|
||
/// 最后观看时间
|
||
/// </summary>
|
||
[JsonPropertyName("end_time")]
|
||
public string EndTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户头像
|
||
/// </summary>
|
||
[JsonPropertyName("headimgurl")]
|
||
public string Headimgurl { get; set; }
|
||
|
||
/// <summary>
|
||
/// IP地址
|
||
/// </summary>
|
||
[JsonPropertyName("ip")]
|
||
public string Ip { get; set; }
|
||
|
||
/// <summary>
|
||
/// 直播ID
|
||
/// </summary>
|
||
[JsonPropertyName("living_id")]
|
||
public string LivingId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户昵称
|
||
/// </summary>
|
||
[JsonPropertyName("nickname")]
|
||
public string Nickname { get; set; }
|
||
|
||
/// <summary>
|
||
/// 身份
|
||
/// </summary>
|
||
[JsonPropertyName("province")]
|
||
public string Province { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户ID
|
||
/// </summary>
|
||
[JsonPropertyName("resid")]
|
||
public string Resid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户ID
|
||
/// </summary>
|
||
[JsonPropertyName("umid")]
|
||
public string? Umid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 课程ID
|
||
/// </summary>
|
||
[JsonPropertyName("scheduleid")]
|
||
public long Scheduleid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 自身部门ID
|
||
/// </summary>
|
||
[JsonPropertyName("self_deptid")]
|
||
public object SelfDeptid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 自身工号
|
||
/// </summary>
|
||
[JsonPropertyName("self_eid")]
|
||
public object SelfEid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 开始观看时间
|
||
/// </summary>
|
||
[JsonPropertyName("start_time")]
|
||
public string StartTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 课程名称
|
||
/// </summary>
|
||
[JsonPropertyName("title")]
|
||
public string Title { get; set; }
|
||
|
||
/// <summary>
|
||
/// 观看时长
|
||
/// </summary>
|
||
[JsonPropertyName("total_watch_time")]
|
||
public string TotalWatchTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[JsonPropertyName("update_time")]
|
||
public string UpdateTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户类型,0:员工,1:客户
|
||
/// </summary>
|
||
[JsonPropertyName("user_type")]
|
||
public long UserType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 观看天数
|
||
/// </summary>
|
||
[JsonPropertyName("watch_days")]
|
||
public string WatchDays { get; set; }
|
||
|
||
/// <summary>
|
||
/// 观看时长
|
||
/// </summary>
|
||
public string TotalWatchTimeStr
|
||
{
|
||
get
|
||
{
|
||
return Utility.SecondToHour(double.Parse(TotalWatchTime));
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 平均观看时长
|
||
/// total_watch_time / watch_days
|
||
/// </summary>
|
||
public string AvgWatchTime
|
||
{
|
||
get
|
||
{
|
||
if (string.IsNullOrEmpty(TotalWatchTime) ||
|
||
string.IsNullOrEmpty(WatchDays) ||
|
||
!int.TryParse(TotalWatchTime, out int totalWatchTime) ||
|
||
!int.TryParse(WatchDays, out int watchDays))
|
||
{
|
||
return "--";
|
||
}
|
||
return watchDays == 0 ? "--" : Utility.SecondToHour(totalWatchTime / watchDays);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 组别id
|
||
/// </summary>
|
||
[JsonPropertyName("groupid")]
|
||
public decimal? Groupid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 组别
|
||
/// </summary>
|
||
[JsonPropertyName("group_name")]
|
||
public string? GroupName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 进线时间
|
||
/// </summary>
|
||
[JsonPropertyName("create_time")]
|
||
public string? CreateTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 企微客服id
|
||
/// </summary>
|
||
[JsonPropertyName("userid")]
|
||
public string? Userid { get; set; }
|
||
|
||
[JsonPropertyName("inviter_eid")]
|
||
public int? InviterEid { get; set; }
|
||
|
||
[JsonPropertyName("username")]
|
||
public string? Username { get; set; }
|
||
}
|
||
} |