Spaces:
Sleeping
Sleeping
Yuyuqt
add: books, borrowings, home, login, membership, register, reward, userinsights, wishlist, themes
6f32ae8 Download Frontend/Models/RewardsViewModel.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/Frontend/Models/RewardsViewModel.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement/Frontend/Models/RewardsViewModel.cs
-
curl -L -o RewardsViewModel.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/Frontend/Models/RewardsViewModel.cs
1.05 kB
| using LibraryManagement.Shared.Models; | |
| namespace Frontend.Models | |
| { | |
| // Member rewards page view model | |
| public class RewardsViewModel | |
| { | |
| public IEnumerable<LoyaltyRewardDto> Rewards { get; set; } = Enumerable.Empty<LoyaltyRewardDto>(); | |
| public LoyaltyAccountDto? Account { get; set; } | |
| public IEnumerable<LoyaltyRedemptionDto> PendingRedemptions { get; set; } = Enumerable.Empty<LoyaltyRedemptionDto>(); | |
| public IEnumerable<LoyaltyRedemptionDto> RedemptionsHistory { get; set; } = Enumerable.Empty<LoyaltyRedemptionDto>(); | |
| public IEnumerable<PointHistoryEntryDto> PointsHistory { get; set; } = Enumerable.Empty<PointHistoryEntryDto>(); | |
| } | |
| // Librarian rewards management view model | |
| public class LibrarianRewardsViewModel | |
| { | |
| public IEnumerable<LoyaltyRedemptionDto> PendingRedemptions { get; set; } = Enumerable.Empty<LoyaltyRedemptionDto>(); | |
| public IEnumerable<UserPointsHistoryDto> AllMembersHistory { get; set; } = Enumerable.Empty<UserPointsHistoryDto>(); | |
| } | |
| } | |