| | |
| | | package com.secondworld.sdk.command; |
| | | |
| | | import com.secondworld.sdk.PermissionManager; |
| | | import com.secondworld.sdk.utils.CodeU2A; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | | |
| | | public class CmdRequestPermission implements ICommand { |
| | | public class CmdRequestPermission implements ICommand { |
| | | |
| | | @Override |
| | | public int getCode() { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void process(JSONObject json) { |
| | | |
| | | public void process(JSONObject json) throws JSONException { |
| | | String permission = json.getString("permission"); |
| | | PermissionManager.I.requestPermissions(permission); |
| | | } |
| | | } |