From da988f74bdb4725432f4a457894319ea80da0159 Mon Sep 17 00:00:00 2001 From: krawieck Date: Tue, 11 Aug 2020 19:03:24 +0200 Subject: [PATCH] Change `PostType` to `PostListingType` --- lib/client/v1/main.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/client/v1/main.dart b/lib/client/v1/main.dart index 499b3d1..404411c 100644 --- a/lib/client/v1/main.dart +++ b/lib/client/v1/main.dart @@ -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");