implement Broadcast and SessionManager services
This commit is contained in:
@@ -1,9 +1,29 @@
|
||||
namespace Chtn.CSharp.SDK.Models.Call
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Chtn.CSharp.SDK.Models.Call
|
||||
{
|
||||
public class StreamRegistry
|
||||
{
|
||||
public string StreamKey { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string StreamUrl { get; set; }
|
||||
[JsonProperty("streamKey")] public string SreamKey { get; set; }
|
||||
[JsonProperty("status")] public List<string> Status { get; set; }
|
||||
[JsonProperty("streamUrl")] public List<string> StreamUrl { get; set; }
|
||||
}
|
||||
|
||||
public class CreateServerReq
|
||||
{
|
||||
[JsonProperty("channelId")] public List<string> ChannelId { get; set; }
|
||||
[JsonProperty("name")] public List<string> Name { get; set; }
|
||||
}
|
||||
|
||||
public class GetRtmpDataReq
|
||||
{
|
||||
[JsonProperty("channelId")] public List<string> ChannelId { get; set; }
|
||||
}
|
||||
|
||||
public class BroadcastJoinWsRoomReq
|
||||
{
|
||||
[JsonProperty("connId")] public List<string> ConnId { get; set; }
|
||||
[JsonProperty("channelId")] public List<string> ChannelId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,9 @@
|
||||
namespace Chtn.CSharp.SDK.Models.Session
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Chtn.CSharp.SDK.Models.Session
|
||||
{
|
||||
public class ValidateSessionReq { public string Token { get; set; } }
|
||||
public class ValidateSessionReq
|
||||
{
|
||||
[JsonProperty("token")] public string Token { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Chtn.CSharp.SDK.Models.User;
|
||||
using System.Collections.Generic;
|
||||
using Chtn.CSharp.SDK.Models.User;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Chtn.CSharp.SDK.Models.Session
|
||||
@@ -8,5 +9,8 @@ namespace Chtn.CSharp.SDK.Models.Session
|
||||
[JsonProperty("userData")] public PersonalUserData UserData { get; set; }
|
||||
[JsonProperty("token")] public string Token { get; set; }
|
||||
}
|
||||
public class ValidateSessionResp { public bool ValidationOk { get; set; } }
|
||||
public class ValidateSessionResp
|
||||
{
|
||||
[JsonProperty("validationOk")] public bool ValidationOk { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user