new_version_init
This commit is contained in:
38
VDownload.Services/VDownload.Services.HttpClient/Token.cs
Normal file
38
VDownload.Services/VDownload.Services.HttpClient/Token.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Services.HttpClient
|
||||
{
|
||||
public class Token
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public string Schema { get; private set; }
|
||||
public byte[] TokenValue { get; private set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public Token(string schema, byte[] tokenValue)
|
||||
{
|
||||
Schema = schema;
|
||||
TokenValue = tokenValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public override string ToString() => $"{Schema} {Encoding.UTF8.GetString(TokenValue)}";
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user