Last active
December 2, 2018 17:19
-
-
Save ThanawatMas/fdd83f01ca4cf837170197bcf649e5ac to your computer and use it in GitHub Desktop.
This file contains 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
public class FortuneQueue implements Api { | |
private int entryNo; | |
private Date entryTime; | |
private int luckyScale; | |
public static Observable<Api> mockApi() { | |
FortuneQueue queue = new FortuneQueue(); | |
queue.setEntryNo(25); | |
queue.setEntryTime(new Date(System.currentTimeMillis())); | |
queue.setLuckyScale(5); | |
return Observable.just(queue); | |
} | |
@Override | |
public String getApiName() { | |
return getClass().getSimpleName(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment