public void setSelectionWithoutCallback(int i) { Log.v( "SeasonsSpinner", (new StringBuilder()) .append("Setting selection (no callback) to position: ") .append(i) .toString()); super.setSelection(i); }
public void setSelection(int i) { Log.v( "SeasonsSpinner", (new StringBuilder()).append("Setting selection to position: ").append(i).toString()); super.setSelection(i); if (itemSelectedListener != null) { itemSelectedListener.onItemSelected(this, this, i, getSelectedItemId()); } }
protected String parseFalcorResponse(String s) throws FalcorParseException, FalcorServerException { if (Log.isLoggable("nf_service_user_fetchwebuserrequest", 2)) { Log.v( "nf_service_user_fetchwebuserrequest", (new StringBuilder()).append("String response to parse = ").append(s).toString()); } JsonObject jsonobject = FalcorParseUtils.getDataObj("nf_service_user_fetchwebuserrequest", s); if (FalcorParseUtils.isEmpty(jsonobject)) { throw new FalcorParseException("UserConnectWith empty!!!"); } try { jsonobject = jsonobject.getAsJsonObject("user"); } catch (Exception exception) { Log.v( "nf_service_user_fetchwebuserrequest", (new StringBuilder()).append("String response to parse = ").append(s).toString()); throw new FalcorParseException("response missing user json objects", exception); } s = (com.netflix.mediaclient.service.webclient.model.leafs.UserProfile.Operation) FalcorParseUtils.getPropertyObject( jsonobject, "operation", com / netflix / mediaclient / service / webclient / model / leafs / UserProfile$Operation); if (s != null) { return ((com.netflix.mediaclient.service.webclient.model.leafs.UserProfile.Operation) (s)) .status; } else { return new String("400"); } }
public FetchConnectWithFacebookRequest( Context context, com.netflix.mediaclient.service.ServiceAgent.ConfigurationAgentInterface configurationagentinterface, String s, UserAgentWebCallback useragentwebcallback) { super(context, configurationagentinterface); mAccessToken = s; responseCallback = useragentwebcallback; pqlQuery = (new StringBuilder("['connectWithFacebook', '")) .append(mAccessToken) .append("']") .toString(); if (Log.isLoggable("nf_service_user_fetchwebuserrequest", 2)) { Log.v( "nf_service_user_fetchwebuserrequest", (new StringBuilder()).append("PQL = ").append(pqlQuery).toString()); } }