OF-DL/Cajetan.OF-DL/Models/Extensions.cs

20 lines
666 B
C#

namespace OF_DL.Models.Downloads;
internal static class DownloadsExtensions
{
extension(CreatorDownloadResult result)
{
public void Add(CreatorDownloadResult other)
{
result.PaidPostCount += other.PaidPostCount;
result.PostCount += other.PostCount;
result.ArchivedCount += other.ArchivedCount;
result.StreamsCount += other.StreamsCount;
result.StoriesCount += other.StoriesCount;
result.HighlightsCount += other.HighlightsCount;
result.MessagesCount += other.MessagesCount;
result.PaidMessagesCount += other.PaidMessagesCount;
}
}
}