Implement AuthService and ApiClient core logic
This commit is contained in:
20
Models/FileUploadModels.cs
Normal file
20
Models/FileUploadModels.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Chtn.CSharp.SDK.Models.Media
|
||||
{
|
||||
public class RegisterUploadReq
|
||||
{
|
||||
[JsonProperty("roomId")] public string RoomId { get; set; }
|
||||
[JsonProperty("userid")] public string UserId { get; set; }
|
||||
[JsonProperty("files")] public List<FileUploadRegistration> Files { get; set; }
|
||||
}
|
||||
public class FileUploadRegistration
|
||||
{
|
||||
[JsonProperty("size")] public long Size { get; set; }
|
||||
[JsonProperty("type")] public string Type { get; set; }
|
||||
[JsonProperty("name")] public string Name { get; set; }
|
||||
[JsonProperty("fileId")] public string FileId { get; set; }
|
||||
}
|
||||
public class RegisterUploadResp { public string UploadId { get; set; } }
|
||||
}
|
||||
Reference in New Issue
Block a user