This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blacksquared.changers.model; | |
import android.content.SharedPreferences; | |
/** | |
* Created by Ed | |
*/ | |
public class CachedValue<T> { | |
private static SharedPreferences sharedPref; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blacksquared.changers.manager; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import com.blacksquared.changers.Constants; | |
import com.blacksquared.changers.interfaces.Initializer; | |
import com.blacksquared.changers.model.CachedValue; | |
import java.util.HashSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String parseJS eval | |
{ | |
"status":0, | |
"result":[ | |
{ | |
"CO2KG":50, | |
"image":"50", | |
"InAppIdentifier":"com.changers.inapp.50", | |
"Price":50 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--co2 offset screen--> | |
<string name="co2_offset_top_label">SET YOUR JOURNEY\nCO2-FREE</string> | |
<string name="co2_offset_description_car">With %s Recoins you can neutralize</string> | |
<string name="co2_offset_description_amount">%s kg of CO2.</string> | |
<string name="co2_offset_bottom_label">You can either use the Recoins\nin your account or you can\npurchase them.</string> | |
<string name="co2_offset_count_rc">%s RC</string> | |
<string name="co2_offset_count_euro">%s €</string> | |
<string name="co2_offset_nope_not_this_time">NOPE, NOT THIS TIME.</string> | |
<string name="co2_offset_count_kg">for %s kg</string> | |
<string name="co2_offset_not_enough_recoins">You don’t have enough recoins. Your current balance is %s recoins.</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id":"357", | |
"longitude":"13.1061212", | |
"accurancy":"39.0", | |
"distance":"475.555553242888", | |
"latitude":"52.3920098" | |
}, | |
{ | |
"_id":"358", | |
"longitude":"13.0826189", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status":0, | |
"result":[ | |
{ | |
"guid":7, | |
"type":"Local", | |
"subtype":null, | |
"amount":"1.448", | |
"location":null, | |
"startLatitude":"48.49385", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status":0, | |
"result":{ | |
"request":{ | |
"guid":7, | |
"type":"Local", | |
"subtype":null, | |
"amount":"1.448", | |
"location":null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_instruments": { | |
"1": { | |
"AccountID": null, | |
"_spreadWidening": 0.0, | |
"_spread": 0.0, | |
"DepartmentID": null, | |
"_enable": true, | |
"InstrumentID": 1, | |
"_leverage": 200.0000000000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void sendRequest(Context context, MyResultReceiver mReceiver, int method, int arrayIndex) { | |
final Intent intent = new Intent(Intent.ACTION_SYNC, null, context, QueryService.class); | |
intent.putExtra("receiver", mReceiver); | |
intent.putExtra("command", "queryPost"); | |
ArrayList<String> postVariables = new ArrayList<String>(); | |
ArrayList<String> postData = new ArrayList<String>(); | |
User user = User.getInstance(); | |
Order order = Order.getInstance(); | |
switch (method) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void openCurrentMapFragment() { | |
if (StateManager.getInstance().getCurrentUserType() == StateManager.UserType.DRIVER) { | |
openDriverFragment(); | |
} else if(StateManager.getInstance().getCurrentUserType() == StateManager.UserType.GUEST) { | |
openGuestFragment(); | |
} | |
} | |
private void openGuestFragment() { | |
String tag = RequestDriverFragment.TAG; |