-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
132 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
/// <summary> | ||
/// Стоимость | ||
/// </summary> | ||
public class YPrice | ||
{ | ||
#region Свойства | ||
|
||
public decimal Amount { get; set; } | ||
public string Currency { get; set; } | ||
|
||
#endregion Свойства | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
/// <summary> | ||
/// Продукт | ||
/// </summary> | ||
public class YProduct | ||
{ | ||
#region Свойства | ||
|
||
public string ProductId { get; set; } | ||
public YProductType Type { get; set; } | ||
public string CommonPeriodDuration { get; set;} | ||
public int Duration { get; set;} | ||
public int TrialDuration { get; set;} | ||
public YPrice Price { get; set; } | ||
public bool Plus { get; set; } | ||
public string Feature { get; set; } | ||
public List<string> Features { get; set; } | ||
public bool Debug { get; set; } | ||
|
||
#endregion Свойства | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
/// <summary> | ||
/// Тип продукта | ||
/// </summary> | ||
public enum YProductType | ||
{ | ||
/// <summary> | ||
/// Подписка | ||
/// </summary> | ||
Subscription | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
/// <summary> | ||
/// Напоминание | ||
/// </summary> | ||
public class YReminder | ||
{ | ||
#region Свойства | ||
|
||
public int Days { get; set; } | ||
|
||
#endregion Свойства | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
namespace Yandex.Music.Api.Models.Common | ||
using System.Collections.Generic; | ||
|
||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
public class YSubscription | ||
{ | ||
#region Свойства | ||
|
||
public List<YSubscriptionService> AutoRenewable { get; set; } | ||
public bool CanStartTrial { get; set; } | ||
public bool HadAnySubscription { get; set; } | ||
public bool McDonalds { get; set; } | ||
public YPeriod NonAutoRenewable { get; set; } | ||
public YReminder NonAutoRenewableRemainder { get; set; } | ||
|
||
#endregion Свойства | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
/// <summary> | ||
/// Сервис подписки | ||
/// </summary> | ||
public class YSubscriptionService | ||
{ | ||
#region Свойства | ||
|
||
public DateTime Expires { get; set; } | ||
public string Vendor { get; set; } | ||
public string VendorHelpUrl { get; set; } | ||
public string ProductId { get; set; } | ||
public YProduct Product { get; set; } | ||
public decimal OrderId { get; set; } | ||
public bool Finished { get; set; } | ||
|
||
#endregion Свойства | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Yandex.Music.Api.Models.Common | ||
{ | ||
public enum YTrackSharingFlag | ||
{ | ||
[EnumMember(Value = "VIDEO_ALLOWED")] | ||
VideoAllowed, | ||
[EnumMember(Value = "COVER_ONLY")] | ||
CoverOnly | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters