-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlogPost.java
More file actions
38 lines (29 loc) · 1 KB
/
Copy pathBlogPost.java
File metadata and controls
38 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.hossain.zakaria.firebasephotoapp.models;
public class BlogPost extends BlogPostId {
private String userId, postImageUrl, postDescription, postThumbnailUrl, postDateAndTime;
public BlogPost() {
//empty constructor needed for retrieving data from fire-base
}
public BlogPost(String userId, String postImageUrl, String postDescription, String postThumbnailUrl, String postDateAndTime) {
this.userId = userId;
this.postImageUrl = postImageUrl;
this.postDescription = postDescription;
this.postThumbnailUrl = postThumbnailUrl;
this.postDateAndTime = postDateAndTime;
}
public String getUserId() {
return userId;
}
public String getPostImageUrl() {
return postImageUrl;
}
public String getPostDescription() {
return postDescription;
}
public String getPostThumbnailUrl() {
return postThumbnailUrl;
}
public String getPostDateAndTime() {
return postDateAndTime;
}
}