Обнновлено до .net10
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
namespace YandexMusic.API.Requests.Common.Attributes
|
||||
namespace YandexMusic.API.Requests.Common.Attributes;
|
||||
|
||||
/// <summary>
|
||||
/// Атрибут запроса без привязки к базовому адресу
|
||||
/// </summary>
|
||||
public class YRequestAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Атрибут запроса без привязки к базовому адресу
|
||||
/// </summary>
|
||||
public class YRequestAttribute : Attribute
|
||||
#region Поля
|
||||
|
||||
protected string path;
|
||||
|
||||
#endregion Поля
|
||||
|
||||
#region Свойства
|
||||
|
||||
public string Method { get; }
|
||||
public virtual string Url => path;
|
||||
|
||||
#endregion Свойства
|
||||
|
||||
public YRequestAttribute(string method, string url)
|
||||
{
|
||||
#region Поля
|
||||
|
||||
protected string path;
|
||||
|
||||
#endregion Поля
|
||||
|
||||
#region Свойства
|
||||
|
||||
public string Method { get; }
|
||||
public virtual string Url => path;
|
||||
|
||||
#endregion Свойства
|
||||
|
||||
public YRequestAttribute(string method, string url)
|
||||
{
|
||||
Method = method;
|
||||
path = url;
|
||||
}
|
||||
Method = method;
|
||||
path = url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user