Advertisement
Semior001

News Model

Sep 11th, 2016
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. package models;
  2.  
  3. import android.graphics.Bitmap;
  4. import android.media.Image;
  5.  
  6. /**
  7.  * Created by semior001 on 04.09.16.
  8.  */
  9. public class News {
  10.     private String body;
  11.     private String authorName;
  12.     private Bitmap authorAvatar;
  13.  
  14.     public News(){}
  15.  
  16.     public News (String body, String authorName, Bitmap authorAvatar){
  17.         this.body = body;
  18.         this.authorName = authorName;
  19.         this.authorAvatar = authorAvatar;
  20.     }
  21.  
  22.     public String getBody() {
  23.         return body;
  24.     }
  25.  
  26.     public void setBody(String body) {
  27.         this.body = body;
  28.     }
  29.  
  30.     public String getAuthorName() {
  31.         return authorName;
  32.     }
  33.  
  34.     public void setAuthorName(String authorName) {
  35.         this.authorName = authorName;
  36.     }
  37.  
  38.     public Bitmap getAuthorAvatar() {
  39.         return authorAvatar;
  40.     }
  41.  
  42.     public void setAuthorAvatar(Bitmap authorAvatar) {
  43.         this.authorAvatar = authorAvatar;
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement