1
0
mirror of https://github.com/pierre42100/ComunicAndroid synced 2025-02-24 10:21:15 +00:00

Create movie type

This commit is contained in:
Pierre 2018-02-19 16:17:29 +01:00
parent 9662015b3a
commit dd28045fc7
2 changed files with 9 additions and 0 deletions
app/src/main/java/org/communiquons/android/comunic/client/data/posts

@ -19,6 +19,11 @@ public enum PostTypes {
*/
IMAGE,
/**
* Movie
*/
MOVIE,
/**
* Unknown type
*/

@ -115,6 +115,10 @@ public class PostsHelper {
post.setType(PostTypes.IMAGE);
break;
case "movie":
post.setType(PostTypes.MOVIE);
break;
default:
post.setType(PostTypes.UNKNOWN);