package ua privatbank ipaylib api nano import org json JSONException i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package ua.privatbank.ipaylib.api.nano;
import org.json.JSONException;
import org.json.JSONObject;
import ua.privatbank.ipaylib.Api;
import ua.privatbank.ipaylib.api.JSONNanoMessage;
public final class otp
extends JSONNanoMessage
{
private final String isCamera;
private final String phone;
public otp(Api paramApi, String paramString1, String paramString2)
{
super(paramApi);
this.isCamera = paramString2;
if (paramString1.startsWith("+"))
{
this.phone = paramString1.substring(1, paramString1.length());
return;
}
this.phone = paramString1;
}
protected void encodeJSON(JSONObject paramJSONObject)
throws JSONException
{
paramJSONObject.put("phone", this.phone);
paramJSONObject.put("camera", this.isCamera);
}
}