Change `PostType` to `PostListingType`

This commit is contained in:
krawieck 2020-08-11 19:03:24 +02:00
parent d646a83881
commit da988f74bd
1 changed files with 5 additions and 5 deletions

View File

@ -53,20 +53,20 @@ extension VoteValue on Vote {
}
}
enum PostType {
enum PostListingType {
all,
subscribed,
community,
}
extension PostTypeValue on PostType {
extension PostTypeValue on PostListingType {
String get value {
switch (this) {
case PostType.all:
case PostListingType.all:
return "All";
case PostType.subscribed:
case PostListingType.subscribed:
return "Subscribed";
case PostType.community:
case PostListingType.community:
return "Community";
}
throw Exception("unreachable");