implement CallService and WebRTC access support
This commit is contained in:
@@ -1,9 +1,31 @@
|
||||
namespace Chtn.CSharp.SDK.Models.Call
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Chtn.CSharp.SDK.Models.Call
|
||||
{
|
||||
public class InviteToCallReq
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string ChatId { get; set; }
|
||||
public string TargetId { get; set; }
|
||||
[JsonProperty("chatid")] public string ChatId { get; set; }
|
||||
[JsonProperty("userid")] public string UserId { get; set; }
|
||||
[JsonProperty("targetid")] public string TargetId { get; set; }
|
||||
[JsonProperty("type")] public string Type { get; set; }
|
||||
}
|
||||
|
||||
public class GetRTCAccessReq
|
||||
{
|
||||
[JsonProperty("chatid")] public string ChatId { get; set; }
|
||||
}
|
||||
|
||||
public class GetRTCAccessResp
|
||||
{
|
||||
[JsonProperty("iceServers")] public List<IceServer> IceServers { get; set; }
|
||||
[JsonProperty("token")] public string Token { get; set; }
|
||||
}
|
||||
|
||||
public class IceServer
|
||||
{
|
||||
[JsonProperty("urls")] public List<string> Urls { get; set; }
|
||||
[JsonProperty("username")] public string Username { get; set; }
|
||||
[JsonProperty("credential")] public string Credential { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user