Files

113 lines
2.3 KiB
C#
Raw Permalink Normal View History

2025-12-11 10:06:20 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fleck;
using Microsoft.VisualBasic.Devices;
using Newtonsoft.Json;
public class ClassUserInfo
{
public long UserID { get; set; }
public string UserName { get; set; }
public int UserType { get; set; }
public long Class { get; set; }
public int Schoolclass { get; set; }
public Guid GUID { get; set; }
[JsonIgnore]
public IWebSocketConnection Linsocket{ get; set; }
}
public class ClassInfo
{
public string CourseName { get; set; }
public List<DisplayJK> DisplayJK { get; set; }
public long CourseID { get; set; }
/// <summary>
/// 1已开课 0结束
/// </summary>
public int CourseStatus { get; set; }
/// <summary>
/// 屏幕显示ID
/// </summary>
public long DisplayID { get; set; }
/// <summary>
/// 教师ID
/// </summary>
public long TeacherID { get; set; }
/// <summary>
/// 课程是否禁音
/// </summary>
public bool AudioIsOpen { get; set; }
public List<UserAudioStatus> userAudioStatus { get; set; }
public bool TeacherAudioIsOpen { get; set; }
}
/// <summary>
/// 本地监控
/// </summary>
public class DisplayJK
{
public string Name { get; set; }
public long UserID { get; set; }
}
/// <summary>
/// 用户音频状态
/// </summary>
public class UserAudioStatus
{
public long UserID { get; set; }
public bool IsOpen { get; set; }
public int UserType { get; set; }
}
public class Result
{
public bool IsSuccess { get; set; }
public string Data { get; set; }
public int MessageType { get; set; }
}
public class ReciveSocketInfo {
/// <summary>
/// 业务类型 单发还是群发
/// </summary>
public int Type { get; set; }
public long UserID { get; set; }
/// <summary>
/// 课程
/// </summary>
public string Class { get; set; }
/// <summary>
/// 班级
/// </summary>
public string SchoolClass { get; set; }
/// <summary>
/// 发送给指定某些用户
/// </summary>
public string UserIDS { get; set; }
/// <summary>
/// 教师或者学生 教师0 学生1
/// </summary>
public int UserType { get; set; }
/// <summary>
/// 内容
/// </summary>
public string Data { get; set; }
}