Skip to content

Instantly share code, notes, and snippets.

http://secure-test.vip.hr/mcrm/getMcrmServices/MSISDN/38916064062/selectedMSISDN/38916064062
{
"McrmDataType": {
"userType": "Prepaid",
"permission": "Master"
}
}
{
"McrmDataType": {
"userType": "Prepaid",
"permission": "Master"
}
}
{
"getFreeUnitsResponse": {
"FreeUnit": {
"FreeUnits": [
{
"freeUnitType": "FreeMinutes",
"totalAmount": 1000,
"usedAmount": 100,
"leftAmount": 900
},
trenutni oblik:
"address":null
nama treba:
"address":[]
{
"getVipmeTariffChangeAmountResponse": {
"Amount": 0
}
}
private void callDownloadOptionsAndPackagesData() {
ServiceInfoSource source = Sources.getServiceInfoSource(getActivity());
ServiceInfoParams params = new ServiceInfoParams();
params.setMsisdn(CurrentUser.getInstance(getActivity()).getMSISDN());
//Ovo ovisno o tome je li "normalan" ili "hibridni" mozda
params.setServiceId(48);
source.setParams(params);
{
"getFreeUnitsResponse": {
"FreeUnit":
{
"FreeUnits": [
{
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
{
"getFreeUnitsResponse": {
"FreeUnit": [
{
"FreeUnits": {
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
}
nije dobar:
{
"getFreeUnitsResponse": {
"FreeUnit": {
"FreeUnits": {
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/content_placeholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >