mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
14
lib/models/common/reply/reply_option_type.dart
Normal file
14
lib/models/common/reply/reply_option_type.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||||
|
||||
enum ReplyOptionType { allow, close, choose }
|
||||
|
||||
extension ReplyOptionTypeExt on ReplyOptionType {
|
||||
String get title => const ['允许评论', '关闭评论', '精选评论'][index];
|
||||
|
||||
IconData get iconData => switch (this) {
|
||||
ReplyOptionType.allow => MdiIcons.commentTextOutline,
|
||||
ReplyOptionType.close => MdiIcons.commentOffOutline,
|
||||
ReplyOptionType.choose => MdiIcons.commentProcessingOutline
|
||||
};
|
||||
}
|
||||
6
lib/models/common/reply/reply_sort_type.dart
Normal file
6
lib/models/common/reply/reply_sort_type.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
enum ReplySortType { time, like }
|
||||
|
||||
extension ReplySortTypeExt on ReplySortType {
|
||||
String get title => const ['最新评论', '最热评论'][index];
|
||||
String get label => const ['最新', '最热'][index];
|
||||
}
|
||||
49
lib/models/common/reply/reply_type.dart
Normal file
49
lib/models/common/reply/reply_type.dart
Normal file
@@ -0,0 +1,49 @@
|
||||
enum ReplyType {
|
||||
unset,
|
||||
// 视频
|
||||
video,
|
||||
// 话题
|
||||
topic,
|
||||
//
|
||||
unset2,
|
||||
// 活动
|
||||
activity,
|
||||
// 小视频
|
||||
videoS,
|
||||
// 小黑屋封禁信息
|
||||
blockMsg,
|
||||
// 公告信息
|
||||
publicMsg,
|
||||
// 直播活动
|
||||
liveActivity,
|
||||
// 活动稿件
|
||||
activityFile,
|
||||
// 直播公告
|
||||
livePublic,
|
||||
// 相簿
|
||||
album,
|
||||
// 专栏
|
||||
column,
|
||||
// 票务
|
||||
ticket,
|
||||
// 音频
|
||||
audio,
|
||||
// 风纪委员会
|
||||
unset3,
|
||||
// 点评
|
||||
comment,
|
||||
// 动态
|
||||
dynamics,
|
||||
// 播单
|
||||
playList,
|
||||
// 音乐播单
|
||||
musicPlayList,
|
||||
// 漫画
|
||||
comics1,
|
||||
// 漫画
|
||||
comics2,
|
||||
// 漫画
|
||||
comics3,
|
||||
// 课程
|
||||
course,
|
||||
}
|
||||
Reference in New Issue
Block a user