From dd28045fc72c6738a69add3fcadb2bb96deaa7f0 Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 19 Feb 2018 16:17:29 +0100 Subject: [PATCH] Create movie type --- .../android/comunic/client/data/posts/PostTypes.java | 5 +++++ .../android/comunic/client/data/posts/PostsHelper.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostTypes.java b/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostTypes.java index 92fec64..520d425 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostTypes.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostTypes.java @@ -19,6 +19,11 @@ public enum PostTypes { */ IMAGE, + /** + * Movie + */ + MOVIE, + /** * Unknown type */ diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostsHelper.java b/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostsHelper.java index 3eef14b..a1d7872 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostsHelper.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/posts/PostsHelper.java @@ -115,6 +115,10 @@ public class PostsHelper { post.setType(PostTypes.IMAGE); break; + case "movie": + post.setType(PostTypes.MOVIE); + break; + default: post.setType(PostTypes.UNKNOWN);