Skip to content

Instantly share code, notes, and snippets.

{
"setServiceStatusResponse": {
"CmdStatus": {
"status": 1
}
}
}
<?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" >
nije dobar:
{
"getFreeUnitsResponse": {
"FreeUnit": {
"FreeUnits": {
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
{
"getFreeUnitsResponse": {
"FreeUnit": [
{
"FreeUnits": {
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
}
{
"getFreeUnitsResponse": {
"FreeUnit":
{
"FreeUnits": [
{
"freeUnitType": "FreeSmsMms",
"totalAmount": 20,
"usedAmount": 0,
"leftAmount": 20
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);
{
"getVipmeTariffChangeAmountResponse": {
"Amount": 0
}
}
trenutni oblik:
"address":null
nama treba:
"address":[]
{
"getFreeUnitsResponse": {
"FreeUnit": {
"FreeUnits": [
{
"freeUnitType": "FreeMinutes",
"totalAmount": 1000,
"usedAmount": 100,
"leftAmount": 900
},
{
"McrmDataType": {
"userType": "Prepaid",
"permission": "Master"
}
}