new_version_init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Authentication.Models
|
||||
{
|
||||
internal class ValidateResponseFail
|
||||
{
|
||||
[JsonProperty("status", Required = Required.Always)]
|
||||
public int Status { get; set; }
|
||||
|
||||
[JsonProperty("message", Required = Required.Always)]
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Authentication.Models
|
||||
{
|
||||
internal class ValidateResponseSuccess
|
||||
{
|
||||
[JsonProperty("client_id", Required = Required.Always)]
|
||||
public string ClientId { get; set; }
|
||||
|
||||
[JsonProperty("login", Required = Required.Always)]
|
||||
public string Login { get; set; }
|
||||
|
||||
[JsonProperty("scopes", Required = Required.Always)]
|
||||
public List<string> Scopes { get; set; }
|
||||
|
||||
[JsonProperty("user_id", Required = Required.Always)]
|
||||
public string UserId { get; set; }
|
||||
|
||||
[JsonProperty("expires_in", Required = Required.Always)]
|
||||
public int ExpiresIn { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user