forked from xiaoyaocz/biliuwp-lite
-
Notifications
You must be signed in to change notification settings - Fork 41
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
59 changed files
with
1,877 additions
and
1,675 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
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
22 changes: 22 additions & 0 deletions
22
src/BiliLite.UWP/Models/Common/Anime/AnimeTimelineItemModel.cs
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 Newtonsoft.Json; | ||
|
||
namespace BiliLite.Models.Common.Anime; | ||
|
||
public class AnimeTimelineItemModel : ISeasonItem | ||
{ | ||
[JsonProperty("season_id")] | ||
public int SeasonId { get; set; } | ||
|
||
public string Cover { get; set; } | ||
|
||
[JsonProperty("square_cover")] | ||
public string SquareCover { get; set; } | ||
|
||
[JsonProperty("pub_index")] | ||
public string PubIndex { get; set; } | ||
|
||
[JsonProperty("pub_time")] | ||
public string PubTime { get; set; } | ||
|
||
public string Title { get; set; } | ||
} |
19 changes: 19 additions & 0 deletions
19
src/BiliLite.UWP/Models/Common/Anime/AnimeTimelineModel.cs
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,19 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace BiliLite.Models.Common.Anime; | ||
|
||
public class AnimeTimelineModel | ||
{ | ||
public string Week { get; set; } | ||
|
||
[JsonProperty("day_week")] | ||
public int DayWeek { get; set; } | ||
|
||
public string Date { get; set; } | ||
|
||
[JsonProperty("is_today")] | ||
public bool IsToday { get; set; } | ||
|
||
public List<AnimeTimelineItemModel> Seasons { get; set; } | ||
} |
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,8 @@ | ||
namespace BiliLite.Models.Common.Anime; | ||
|
||
public class AnimeTypeItem | ||
{ | ||
public string Name { get; set; } | ||
|
||
public AnimeType AnimeType { get; set; } | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/BiliLite.UWP/Models/Common/Favorites/FavoriteDetailModel.cs
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,11 @@ | ||
using System.Collections.Generic; | ||
using BiliLite.Modules; | ||
|
||
namespace BiliLite.Models.Common.Favorites; | ||
|
||
public class FavoriteDetailModel | ||
{ | ||
public FavoriteInfoModel Info { get; set; } | ||
|
||
public List<FavoriteInfoVideoItemModel> Medias { get; set; } | ||
} |
32 changes: 32 additions & 0 deletions
32
src/BiliLite.UWP/Models/Common/Favorites/FavoriteInfoModel.cs
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,32 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace BiliLite.Models.Common.Favorites; | ||
|
||
public class FavoriteInfoModel | ||
{ | ||
public string Cover { get; set; } | ||
|
||
public int Attr { get; set; } | ||
|
||
public bool Privacy => Attr == 2; | ||
|
||
public string Fid { get; set; } | ||
|
||
public string Id { get; set; } | ||
|
||
[JsonProperty("like_state")] | ||
public int LikeState { get; set; } | ||
|
||
[JsonProperty("fav_state")] | ||
public int FavState { get; set; } | ||
|
||
public string Mid { get; set; } | ||
|
||
public string Title { get; set; } | ||
public int Type { get; set; } | ||
|
||
[JsonProperty("media_count")] | ||
public int MediaCount { get; set; } | ||
|
||
public FavoriteInfoVideoItemUpperModel Upper { get; set; } | ||
} |
17 changes: 17 additions & 0 deletions
17
src/BiliLite.UWP/Models/Common/Favorites/FavoriteInfoVideoItemModel.cs
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,17 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace BiliLite.Models.Common.Favorites; | ||
|
||
public class FavoriteInfoVideoItemModel | ||
{ | ||
public string Id { get; set; } | ||
|
||
public string Cover { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public FavoriteInfoVideoItemUpperModel Upper { get; set; } | ||
|
||
[JsonProperty("cnt_info")] | ||
public FavoriteInfoVideoItemStatModel CntInfo { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
src/BiliLite.UWP/Models/Common/Favorites/FavoriteInfoVideoItemStatModel.cs
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,16 @@ | ||
namespace BiliLite.Models.Common.Favorites; | ||
|
||
public class FavoriteInfoVideoItemStatModel | ||
{ | ||
public int Coin { get; set; } | ||
|
||
public int Collect { get; set; } | ||
|
||
public int Danmaku { get; set; } | ||
|
||
public int Play { get; set; } | ||
|
||
public int Reply { get; set; } | ||
|
||
public int Share { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
src/BiliLite.UWP/Models/Common/Favorites/FavoriteInfoVideoItemUpperModel.cs
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,10 @@ | ||
namespace BiliLite.Models.Common.Favorites; | ||
|
||
public class FavoriteInfoVideoItemUpperModel | ||
{ | ||
public string Face { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public string Mid { get; set; } | ||
} |
14 changes: 14 additions & 0 deletions
14
src/BiliLite.UWP/Models/Common/Other/FindMoreEntranceModel.cs
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 BiliLite.Models.Common.Other; | ||
|
||
public class FindMoreEntranceModel | ||
{ | ||
public string Name { get; set; } | ||
|
||
public string Desc { get; set; } | ||
|
||
public int Type { get; set; } | ||
|
||
public string Link { get; set; } | ||
|
||
public string Pic { get; set; } | ||
} |
8 changes: 8 additions & 0 deletions
8
src/BiliLite.UWP/Models/Common/Season/SeasonIndexConditionFilterItemModel.cs
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,8 @@ | ||
namespace BiliLite.Models.Common.Season; | ||
|
||
public class SeasonIndexConditionFilterItemModel | ||
{ | ||
public string Keyword { get; set; } | ||
|
||
public string Name { get; set; } | ||
} |
14 changes: 14 additions & 0 deletions
14
src/BiliLite.UWP/Models/Common/Season/SeasonIndexConditionFilterModel.cs
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 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace BiliLite.Models.Common.Season; | ||
|
||
public class SeasonIndexConditionFilterModel | ||
{ | ||
public string Field { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public SeasonIndexConditionFilterItemModel Current { get; set; } | ||
|
||
public List<SeasonIndexConditionFilterItemModel> Values { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
src/BiliLite.UWP/Models/Common/Season/SeasonIndexParameter.cs
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,16 @@ | ||
namespace BiliLite.Models.Common.Season; | ||
|
||
public class SeasonIndexParameter | ||
{ | ||
public IndexSeasonType Type { get; set; } = IndexSeasonType.Anime; | ||
|
||
public string Area { get; set; } = "-1"; | ||
|
||
public string Style { get; set; } = "-1"; | ||
|
||
public string Year { get; set; } = "-1"; | ||
|
||
public string Month { get; set; } = "-1"; | ||
|
||
public string Order { get; set; } = "3"; | ||
} |
Oops, something went wrong.