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);