29 lines
595 B
Java
29 lines
595 B
Java
package com.rubenvandeven.emotionhero;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
/**
|
|
* Created by ruben on 10/09/16.
|
|
*
|
|
* Achievements made in a specific game (as provided by the API)
|
|
*/
|
|
|
|
public class Achievement {
|
|
public String title;
|
|
/**
|
|
* Html string
|
|
*/
|
|
public String description;
|
|
public Bitmap icon;
|
|
|
|
public Achievement(String title, String description, Bitmap icon){
|
|
this.title = title;
|
|
this.description = description;
|
|
this.icon = icon;
|
|
}
|
|
|
|
public int getId() {
|
|
return AchievementCollection.getInstance().getId(this);
|
|
}
|
|
}
|