Skip to content

Instantly share code, notes, and snippets.

@ThanawatMas
Last active December 2, 2018 17:19
Show Gist options
  • Save ThanawatMas/fdd83f01ca4cf837170197bcf649e5ac to your computer and use it in GitHub Desktop.
Save ThanawatMas/fdd83f01ca4cf837170197bcf649e5ac to your computer and use it in GitHub Desktop.
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