XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

STHApplication

【MAUI】寄当家——安卓端交易管理系统

公开
关注 0 Fork 0 Star 0
UTF-8
namespace JiDangJia.Contracts;

public static class ChatRetention
{
    public const int MessageDays=30,ImageDays=7,VideoDays=3;
    public static int MediaDays(string kind)=>kind switch
    {
        "IMAGE"=>ImageDays,"VIDEO"=>VideoDays,"AUDIO"=>MessageDays,
        _=>throw new ArgumentException("无效的私信附件类型")
    };
}