You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
downkyi/DownKyi.Core/BiliApi/Zone/VideoZoneIcon.cs

86 lines
2.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace DownKyi.Core.BiliApi.Zone
{
/// <summary>
/// 视频分区图标
/// </summary>
public class VideoZoneIcon
{
private static VideoZoneIcon instance;
/// <summary>
/// 获取VideoZoneIcon实例
/// </summary>
/// <returns></returns>
public static VideoZoneIcon Instance()
{
if (instance == null)
{
instance = new VideoZoneIcon();
}
return instance;
}
/// <summary>
/// 隐藏VideoZoneIcon()方法,必须使用单例模式
/// </summary>
private VideoZoneIcon() { }
/// <summary>
/// 根据tid获取视频分区图标
/// </summary>
/// <param name="tid"></param>
/// <returns></returns>
public string GetZoneImageKey(int tid)
{
switch (tid)
{
case 1:
return "Zone.dougaDrawingImage";
case 13:
return "Zone.animeDrawingImage";
case 167:
return "Zone.guochuangDrawingImage";
case 3:
return "Zone.musicDrawingImage";
case 129:
return "Zone.danceDrawingImage";
case 4:
return "Zone.gameDrawingImage";
case 36:
return "Zone.techDrawingImage";
case 188:
return "Zone.digitalDrawingImage";
case 234:
return "Zone.sportsDrawingImage";
case 223:
return "Zone.carDrawingImage";
case 160:
return "Zone.lifeDrawingImage";
case 211:
return "Zone.foodDrawingImage";
case 217:
return "Zone.animalDrawingImage";
case 119:
return "Zone.kichikuDrawingImage";
case 155:
return "Zone.fashionDrawingImage";
case 202:
return "Zone.informationDrawingImage";
case 5:
return "Zone.entDrawingImage";
case 181:
return "Zone.cinephileDrawingImage";
case 177:
return "Zone.documentaryDrawingImage";
case 23:
return "Zone.movieDrawingImage";
case 11:
return "Zone.teleplayDrawingImage";
default:
return "videoUpDrawingImage";
}
}
}
}