31 lines
989 B
C#
31 lines
989 B
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Chtn.CSharp.SDK.Models.Call
|
|
{
|
|
public class InviteToCallReq
|
|
{
|
|
[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; }
|
|
}
|
|
} |