Back to project page Java-Yandex.Money-API-SDK.
The source code is released under:
MIT License
If you think the Android project Java-Yandex.Money-API-SDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ru.yandex.money.api; // ww w . j av a 2 s.c o m import org.apache.http.NameValuePair; import java.util.Collection; import java.util.Collections; /** * <p/> * <p/> * Created: 26.10.13 11:16 * <p/> * * @author OneHalf */ public interface CommandUrlHolder { CommandUrlHolder DEFAULT = new ConstantUrlHolder(ApiCommandsFacade.URI_YM_API); String getUrlForCommand(String commandName); Collection<NameValuePair> getAdditionalParams(); class ConstantUrlHolder implements CommandUrlHolder { private final String uriYmApi; public ConstantUrlHolder(String uriYmApi1) { uriYmApi = uriYmApi1; } @Override public String getUrlForCommand(String commandName) { return uriYmApi + '/' + commandName; } @Override public Collection<NameValuePair> getAdditionalParams() { return Collections.emptyList(); } } }