uopspop

Untitled

Oct 10th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. package com.example.sam.recycleviewprac;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class Spot implements Serializable{
  6.     private int imgId;
  7.     private String hotelName;
  8.     private int price;
  9.  
  10.     public Spot(int pic, String hotelName, int price) {
  11.         this.imgId = pic;
  12.         this.hotelName = hotelName;
  13.         this.price = price;
  14.     }
  15.  
  16.     public int getimgId() {
  17.         return imgId;
  18.     }
  19.  
  20.     public void setimgId(int pic) {
  21.         this.imgId = pic;
  22.     }
  23.  
  24.     public String getHotelName() {
  25.         return hotelName;
  26.     }
  27.  
  28.     public void setHotelName(String hotelName) {
  29.         this.hotelName = hotelName;
  30.     }
  31.  
  32.     public int getPrice() {
  33.         return price;
  34.     }
  35.  
  36.     public void setPrice(int price) {
  37.         this.price = price;
  38.     }
  39. }
Add Comment
Please, Sign In to add comment