Created
December 7, 2016 04:09
-
-
Save biodunalfet/f90c1780506d608c12daa8210c4e0830 to your computer and use it in GitHub Desktop.
I added the @parcel annotation to it to make it Parcelable.
I also added an empty constructor. It is required for Parceler to work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.sep.loveartlearnart; | |
import org.parceler.Parcel; | |
/** | |
* Created by Eni on 2016-12-04. | |
*/ | |
@Parcel | |
public class ArtModel { | |
String cardName; | |
int imageResourceId; | |
int isfav; | |
int isturned; | |
// needed by parceler | |
public ArtModel() { | |
} | |
public int getIsturned() { | |
return isturned; | |
} | |
public void setIsturned(int isturned) { | |
this.isturned = isturned; | |
} | |
public int getIsfav() { | |
return isfav; | |
} | |
public void setIsfav(int isfav) { | |
this.isfav = isfav; | |
} | |
public String getCardName() { | |
return cardName; | |
} | |
public void setCardName(String cardName) { | |
this.cardName = cardName; | |
} | |
public int getImageResourceId() { | |
return imageResourceId; | |
} | |
public void setImageResourceId(int imageResourceId) { | |
this.imageResourceId = imageResourceId; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment