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

View File

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

View File

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