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
exports.fetch = functions.https.onRequest((req, res) => { | |
(…) // TODO Fetch from API | |
(…) // TODO Clean up | |
(…) // TODO Return result | |
}) |
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
public class LoginActivity extends Activity { | |
private EditText mEmailEdit; | |
private EditText mPassword; | |
private Button btnSend; | |
private EditText mPhoneNumber; | |
private TextWatcher watcher; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
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
(...) | |
private void setupLayout() { | |
// Create Adapter | |
// (...) | |
listView.setAdapter(fbPostAdapter); | |
// Subscribe on provider changes. | |
homeProvider.getObservable().subscribe(new Observer<FbPost>() { |
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
public class FacebookHomeProvider { | |
protected final PublishSubject<FbPost> behaviorSubject; | |
private Request request; | |
public FacebookHomeProvider() { | |
behaviorSubject = PublishSubject.create(); | |
behaviorSubject.subscribeOn(Schedulers.io()); | |
} | |
/** |
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
public class HomePresenterImpl implements HomePresenter { | |
private static final String TAG = HomePresenterImpl.class.getSimpleName(); | |
private final HomeScreen screen; | |
private final DataProvider provider; | |
private Subscription subscription1; | |
public HomePresenterImpl(HomeScreenImpl screen, DataProvider dataProvider) { | |
this.screen = screen; | |
this.provider = dataProvider; | |
} |
NewerOlder