using System;
using System.Collections.Generic;
using System.Text;
namespace WingRtmpService
{
class PushLiveInfoConfig
{
///
/// 品牌
///
public string Brand { get; set; }
///
/// 型号集合
///
public ICollection PushLiveModelConfigs { get; set; }
public DateTime UpdateTime { get; set; }
public PushLiveInfoConfig(string brand)
{
Brand = brand;
}
}
class PushLiveModelInfoConfig
{
public bool Lock { get; }
public string Id { get; }
///
/// 型号
///
public string Model { get; set; }
///
/// 推荐分辨率宽度
///
public int RecommendWidth { get; set; }
///
/// 推荐分辨率高度
///
public int RecommendHeight { get; set; }
public PushLiveModelInfoConfig(string id,string model,int recommendWidth,int recommendHeight, bool iLock)
{
Lock = iLock;
Id = id;
Model = model;
RecommendWidth = recommendWidth;
RecommendHeight = recommendHeight;
}
}
public enum LiveProtocol
{
Rtmp,
RTC,
Rtsp
}
class PushLiveModel
{
public string TerminalId { get; }
public string TerminalName { get; }
public bool IsMerge { get; set; }
public LiveProtocol LiveProtocol { get; set; }
public DateTime UpdateTime { get; set; }
public PushLiveModel(string terminalId, string terminalName, bool isMerge, LiveProtocol liveProtocol)
{
TerminalId = terminalId;
TerminalName = terminalName;
IsMerge = isMerge;
LiveProtocol = liveProtocol;
}
}
}