use of org.wordpress.android.fluxc.store.SiteStore.RefreshSitesXMLRPCPayload in project WordPress-Android by wordpress-mobile.
the class SignInFragment method onDiscoverySucceeded.
@SuppressWarnings("unused")
@Subscribe(threadMode = ThreadMode.MAIN)
public void onDiscoverySucceeded(OnDiscoveryResponse event) {
if (event.isError()) {
AppLog.e(T.API, "onDiscoveryResponse has error: " + event.error.name() + " - " + event.error.toString());
handleDiscoveryError(event.error, event.failedEndpoint);
return;
}
AppLog.i(T.NUX, "Discovery succeeded, endpoint: " + event.xmlRpcEndpoint);
RefreshSitesXMLRPCPayload selfhostedPayload = new RefreshSitesXMLRPCPayload();
selfhostedPayload.username = mUsername;
selfhostedPayload.password = mPassword;
selfhostedPayload.url = event.xmlRpcEndpoint;
mDispatcher.dispatch(SiteActionBuilder.newFetchSitesXmlRpcAction(selfhostedPayload));
}
Aggregations