コード例 #1
0
ファイル: Login_1.cs プロジェクト: shannah/CN1WindowsPort
public virtual void actionPerformed(global::com.codename1.ui.events.ActionEvent n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.social.Login$1: void actionPerformed(com.codename1.ui.events.ActionEvent)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r5_o = this;
    _r6_o = n1;
    _r2_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r2.i = ((_r2_o != null) && (_r2_o is global::com.codename1.io.AccessToken)) ? 1 : 0;
    if (_r2.i == 0) goto label33;
    _r1_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r1_o = _r1_o;
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    ((global::com.codename1.social.Login) _r2_o).setAccessToken((global::com.codename1.io.AccessToken) _r1_o);
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    if (_r2_o == null) goto label32;
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    ((global::com.codename1.social.LoginCallback) _r2_o).loginSuccessful();
    label32:;
    return;
    label33:;
    _r2_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r2.i = ((_r2_o != null) && (_r2_o is global::java.lang.String)) ? 1 : 0;
    if (_r2.i == 0) goto label72;
    _r1_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r1_o = _r1_o;
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r3_o = new global::com.codename1.io.AccessToken();
    _r4_o = null;
    ((global::com.codename1.io.AccessToken) _r3_o).@this((global::java.lang.String) _r1_o, (global::java.lang.String) _r4_o);
    ((global::com.codename1.social.Login) _r2_o).setAccessToken((global::com.codename1.io.AccessToken) _r3_o);
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    if (_r2_o == null) goto label32;
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    ((global::com.codename1.social.LoginCallback) _r2_o).loginSuccessful();
    goto label32;
    label72:;
    _r2_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r2.i = ((_r2_o != null) && (_r2_o is global::java.lang.Exception)) ? 1 : 0;
    if (_r2.i == 0) goto label32;
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    if (_r2_o == null) goto label32;
    _r0_o = ((global::com.codename1.ui.events.ActionEvent) _r6_o).getSource();
    _r0_o = _r0_o;
    ((global::java.lang.Exception) _r0_o).printStackTrace();
    _r2_o = ((global::com.codename1.social.Login_21) _r5_o)._fthis_20;
    _r2_o = ((global::com.codename1.social.Login) _r2_o)._fcallback;
    _r3_o = ((global::java.lang.Exception) _r0_o).getMessage();
    ((global::com.codename1.social.LoginCallback) _r2_o).loginFailed((global::java.lang.String) _r3_o);
    goto label32;
//XMLVM_END_WRAPPER[com.codename1.social.Login$1: void actionPerformed(com.codename1.ui.events.ActionEvent)]
}
コード例 #2
0
ファイル: Oauth2.cs プロジェクト: shannah/CN1WindowsPort
private void handleURL(global::java.lang.String n1, global::com.codename1.components.WebBrowser n2, global::com.codename1.ui.events.ActionListener n3, global::com.codename1.ui.Form n4, global::com.codename1.ui.Form n5, global::com.codename1.ui.Dialog n6){
//XMLVM_BEGIN_WRAPPER[com.codename1.io.Oauth2: void handleURL(java.lang.String, com.codename1.components.WebBrowser, com.codename1.ui.events.ActionListener, com.codename1.ui.Form, com.codename1.ui.Form, com.codename1.ui.Dialog)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r14_o = this;
    _r15_o = n1;
    _r16_o = n2;
    _r17_o = n3;
    _r18_o = n4;
    _r19_o = n5;
    _r20_o = n6;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._fredirectURI;
    _r10.i = ((global::java.lang.String) _r15_o).startsWith((global::java.lang.String) _r10_o) ? 1 : 0;
    if (_r10.i == 0) goto label297;
    _r10_o = global::com.codename1.ui.Display.getInstance();
    _r10_o = ((global::com.codename1.ui.Display) _r10_o).getCurrent();
    _r0_o = _r10_o;
    _r1_o = _r20_o;
    if (_r0_o != _r1_o) goto label24;
    ((global::com.codename1.ui.Dialog) _r20_o).dispose();
    label24:;
    ((global::com.codename1.components.WebBrowser) _r16_o).stop();
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    if (_r10_o == null) goto label41;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    ((global::com.codename1.ui.Dialog) _r10_o).removeAll();
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    ((global::com.codename1.ui.Dialog) _r10_o).revalidate();
    label41:;
    // Value=code=
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 61))}));
    _r10.i = ((global::java.lang.String) _r15_o).indexOf((global::java.lang.String) _r10_o);
    _r11.i = -1;
    if (_r10.i <= _r11.i) goto label130;
    _r6_o = ((global::com.codename1.io.Oauth2) _r14_o).getParamsFromURL((global::java.lang.String) _r15_o);
    _r7_o = new global::com.codename1.io.Oauth2_23();
    _r0_o = _r7_o;
    _r1_o = _r14_o;
    _r2_o = _r19_o;
    _r3_o = _r17_o;
    ((global::com.codename1.io.Oauth2_23) _r0_o).@this((global::com.codename1.io.Oauth2) _r1_o, (global::com.codename1.ui.Form) _r2_o, (global::com.codename1.ui.events.ActionListener) _r3_o);
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._ftokenRequestURL;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).setUrl((global::java.lang.String) _r10_o);
    _r10.i = 1;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).setPost(0!=_r10.i);
    // Value=Content-Type
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101))}));
    // Value=application/x-www-form-urlencoded
    _r11_o = new global::java.lang.String();
    ((global::java.lang.String)_r11_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)97)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100))}));
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addRequestHeader((global::java.lang.String) _r10_o, (global::java.lang.String) _r11_o);
    // Value=client_id
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100))}));
    _r11_o = ((global::com.codename1.io.Oauth2) _r14_o)._fclientId;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addArgument((global::java.lang.String) _r10_o, (global::java.lang.String) _r11_o);
    // Value=redirect_uri
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105))}));
    _r11_o = ((global::com.codename1.io.Oauth2) _r14_o)._fredirectURI;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addArgument((global::java.lang.String) _r10_o, (global::java.lang.String) _r11_o);
    // Value=client_secret
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116))}));
    _r11_o = ((global::com.codename1.io.Oauth2) _r14_o)._fclientSecret;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addArgument((global::java.lang.String) _r10_o, (global::java.lang.String) _r11_o);
    // Value=code
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101))}));
    // Value=code
    _r11_o = new global::java.lang.String();
    ((global::java.lang.String)_r11_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101))}));
    _r14_o = ((global::java.util.Hashtable) _r6_o).get((global::java.lang.Object) _r11_o);
    _r14_o = _r14_o;
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addArgument((global::java.lang.String) _r10_o, (global::java.lang.String) _r14_o);
    // Value=grant_type
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)103)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101))}));
    // Value=authorization_code
    _r11_o = new global::java.lang.String();
    ((global::java.lang.String)_r11_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)97)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 122)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101))}));
    ((global::com.codename1.io.ConnectionRequest) _r7_o).addArgument((global::java.lang.String) _r10_o, (global::java.lang.String) _r11_o);
    _r10_o = global::com.codename1.io.NetworkManager.getInstance();
    ((global::com.codename1.io.NetworkManager) _r10_o).addToQueue((global::com.codename1.io.ConnectionRequest) _r7_o);
    label129:;
    return;
    label130:;
    // Value=error_reason=
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 61))}));
    _r10.i = ((global::java.lang.String) _r15_o).indexOf((global::java.lang.String) _r10_o);
    _r11.i = -1;
    if (_r10.i <= _r11.i) goto label184;
    _r9_o = ((global::com.codename1.io.Oauth2) _r14_o).getParamsFromURL((global::java.lang.String) _r15_o);
    // Value=error_reason
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r5_o = ((global::java.util.Hashtable) _r9_o).get((global::java.lang.Object) _r10_o);
    _r5_o = _r5_o;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    if (_r10_o == null) goto label160;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    ((global::com.codename1.ui.Dialog) _r10_o).dispose();
    label160:;
    if (_r19_o == null) goto label165;
    ((global::com.codename1.ui.Form) _r19_o).showBack();
    label165:;
    if (_r17_o == null) goto label129;
    _r10_o = new global::com.codename1.ui.events.ActionEvent();
    _r11_o = new global::java.io.IOException();
    ((global::java.io.IOException) _r11_o).@this((global::java.lang.String) _r5_o);
    ((global::com.codename1.ui.events.ActionEvent) _r10_o).@this((global::java.lang.Object) _r11_o);
    _r0_o = _r17_o;
    _r1_o = _r10_o;
    ((global::com.codename1.ui.events.ActionListener) _r0_o).actionPerformed((global::com.codename1.ui.events.ActionEvent) _r1_o);
    goto label129;
    label184:;
    // Value=#
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)35))}));
    _r10.i = ((global::java.lang.String) _r15_o).indexOf((global::java.lang.String) _r10_o);
    _r11.i = -1;
    if (_r10.i <= _r11.i) goto label279;
    _r10.i = 1;
    _r8.i = _r10.i;
    label195:;
    if (_r8.i == 0) goto label129;
    // Value=#
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)35))}));
    _r10.i = ((global::java.lang.String) _r15_o).indexOf((global::java.lang.String) _r10_o);
    _r10.i = _r10.i + 1;
    _r4_o = ((global::java.lang.String) _r15_o).substring((int) _r10.i);
    // Value=&
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)38))}));
    _r10.i = ((global::java.lang.String) _r4_o).indexOf((global::java.lang.String) _r10_o);
    if (_r10.i <= 0) goto label282;
    // Value==
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)61))}));
    _r10.i = ((global::java.lang.String) _r4_o).indexOf((global::java.lang.String) _r10_o);
    _r10.i = _r10.i + 1;
    // Value=&
    _r11_o = new global::java.lang.String();
    ((global::java.lang.String)_r11_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)38))}));
    _r11.i = ((global::java.lang.String) _r4_o).indexOf((global::java.lang.String) _r11_o);
    _r10_o = ((global::java.lang.String) _r4_o).substring((int) _r10.i, (int) _r11.i);
    ((global::com.codename1.io.Oauth2) _r14_o)._ftoken = (global::java.lang.String) _r10_o;
    label237:;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    if (_r10_o == null) goto label246;
    _r10_o = ((global::com.codename1.io.Oauth2) _r14_o)._flogin;
    ((global::com.codename1.ui.Dialog) _r10_o).dispose();
    label246:;
    _r10.i = global::com.codename1.io.Oauth2._fbackToParent ? 1 : 0;
    if (_r10.i == 0) goto label255;
    if (_r19_o == null) goto label255;
    ((global::com.codename1.ui.Form) _r19_o).showBack();
    label255:;
    if (_r17_o == null) goto label129;
    _r10_o = new global::com.codename1.ui.events.ActionEvent();
    _r11_o = new global::com.codename1.io.AccessToken();
    _r12_o = ((global::com.codename1.io.Oauth2) _r14_o)._ftoken;
    _r13_o = global::com.codename1.io.Oauth2._fexpires;
    ((global::com.codename1.io.AccessToken) _r11_o).@this((global::java.lang.String) _r12_o, (global::java.lang.String) _r13_o);
    ((global::com.codename1.ui.events.ActionEvent) _r10_o).@this((global::java.lang.Object) _r11_o);
    _r0_o = _r17_o;
    _r1_o = _r10_o;
    ((global::com.codename1.ui.events.ActionListener) _r0_o).actionPerformed((global::com.codename1.ui.events.ActionEvent) _r1_o);
    goto label129;
    label279:;
    _r10.i = 0;
    _r8.i = _r10.i;
    goto label195;
    label282:;
    // Value==
    _r10_o = new global::java.lang.String();
    ((global::java.lang.String)_r10_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)61))}));
    _r10.i = ((global::java.lang.String) _r4_o).indexOf((global::java.lang.String) _r10_o);
    _r10.i = _r10.i + 1;
    _r10_o = ((global::java.lang.String) _r4_o).substring((int) _r10.i);
    ((global::com.codename1.io.Oauth2) _r14_o)._ftoken = (global::java.lang.String) _r10_o;
    goto label237;
    label297:;
    if (_r18_o == null) goto label129;
    _r10_o = global::com.codename1.ui.Display.getInstance();
    _r10_o = ((global::com.codename1.ui.Display) _r10_o).getCurrent();
    _r0_o = _r10_o;
    _r1_o = _r18_o;
    if (_r0_o == _r1_o) goto label129;
    ((global::com.codename1.ui.Dialog) _r20_o).dispose();
    ((global::com.codename1.ui.Form) _r18_o).show();
    goto label129;
//XMLVM_END_WRAPPER[com.codename1.io.Oauth2: void handleURL(java.lang.String, com.codename1.components.WebBrowser, com.codename1.ui.events.ActionListener, com.codename1.ui.Form, com.codename1.ui.Form, com.codename1.ui.Dialog)]
}
コード例 #3
0
public override global::System.Object getAccessToken(){
//XMLVM_BEGIN_WRAPPER[com.codename1.social.FacebookConnect: com.codename1.io.AccessToken getAccessToken()]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    _r4_o = this;
    _r0_o = base.getAccessToken();
    if (_r0_o == null) goto label8;
    _r1_o = _r0_o;
    label7:;
    return (global::com.codename1.io.AccessToken) _r1_o;
    label8:;
    _r1_o = new global::com.codename1.io.AccessToken();
    _r2_o = ((global::com.codename1.social.FacebookConnect) _r4_o).getToken();
    _r3_o = null;
    ((global::com.codename1.io.AccessToken) _r1_o).@this((global::java.lang.String) _r2_o, (global::java.lang.String) _r3_o);
    goto label7;
//XMLVM_END_WRAPPER[com.codename1.social.FacebookConnect: com.codename1.io.AccessToken getAccessToken()]
}
コード例 #4
0
ファイル: Oauth2_3.cs プロジェクト: shannah/CN1WindowsPort
public override void postResponse(){
//XMLVM_BEGIN_WRAPPER[com.codename1.io.Oauth2$3: void postResponse()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r5_o = this;
    _r0.i = global::com.codename1.io.Oauth2.access_2400() ? 1 : 0;
    if (_r0.i == 0) goto label15;
    _r0_o = ((global::com.codename1.io.Oauth2_23) _r5_o)._fval_2backToForm;
    if (_r0_o == null) goto label15;
    _r0_o = ((global::com.codename1.io.Oauth2_23) _r5_o)._fval_2backToForm;
    ((global::com.codename1.ui.Form) _r0_o).showBack();
    label15:;
    _r0_o = ((global::com.codename1.io.Oauth2_23) _r5_o)._fval_2al;
    if (_r0_o == null) goto label44;
    _r0_o = ((global::com.codename1.io.Oauth2_23) _r5_o)._fval_2al;
    _r1_o = new global::com.codename1.ui.events.ActionEvent();
    _r2_o = new global::com.codename1.io.AccessToken();
    _r3_o = ((global::com.codename1.io.Oauth2_23) _r5_o)._fthis_20;
    _r3_o = global::com.codename1.io.Oauth2.access_2100((global::com.codename1.io.Oauth2) _r3_o);
    _r4_o = global::com.codename1.io.Oauth2.access_2200();
    ((global::com.codename1.io.AccessToken) _r2_o).@this((global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o);
    ((global::com.codename1.ui.events.ActionEvent) _r1_o).@this((global::java.lang.Object) _r2_o);
    ((global::com.codename1.ui.events.ActionListener) _r0_o).actionPerformed((global::com.codename1.ui.events.ActionEvent) _r1_o);
    label44:;
    return;
//XMLVM_END_WRAPPER[com.codename1.io.Oauth2$3: void postResponse()]
}