public virtual global::System.Object getPost(global::java.lang.String n1, bool n2){
//XMLVM_BEGIN_WRAPPER[com.codename1.facebook.FaceBookAccess: com.codename1.facebook.Post getPost(java.lang.String, boolean)]
    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._nExceptionAdapter _ex = null;
    _r6_o = this;
    _r7_o = n1;
    _r8.i = n2 ? 1 : 0;
    _r5.i = 0;
    _r1_o = new global::com.codename1.facebook.Post();
    ((global::com.codename1.facebook.Post) _r1_o).@this();
    _r0_o = new global::java.util.Vector();
    ((global::java.util.Vector) _r0_o).@this();
    _r2_o = new global::com.codename1.facebook.FaceBookAccess_211();
    ((global::com.codename1.facebook.FaceBookAccess_211) _r2_o).@this((global::com.codename1.facebook.FaceBookAccess) _r6_o, (global::java.util.Vector) _r0_o);
    ((global::com.codename1.facebook.FaceBookAccess) _r6_o).addResponseCodeListener((global::com.codename1.ui.events.ActionListener) _r2_o);
    _r2_o = new global::com.codename1.facebook.FaceBookAccess_212();
    ((global::com.codename1.facebook.FaceBookAccess_212) _r2_o).@this((global::com.codename1.facebook.FaceBookAccess) _r6_o, (global::com.codename1.facebook.Post) _r1_o);
    ((global::com.codename1.facebook.FaceBookAccess) _r6_o).getFaceBookObject((global::java.lang.String) _r7_o, (global::com.codename1.ui.events.ActionListener) _r2_o, 0!=_r8.i, 0!=_r5.i);
    _r2.i = ((global::java.util.Vector) _r0_o).size();
    if (_r2.i <= 0) goto label82;
    _r2_o = new global::java.io.IOException();
    _r3_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r3_o).@this();
    _r6_o = ((global::java.util.Vector) _r0_o).elementAt((int) _r5.i);
    _r6_o = _r6_o;
    _r4.i = ((global::com.codename1.io.NetworkEvent) _r6_o).getResponseCode();
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((int) _r4.i);
    // Value=: 
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)58)), unchecked((char) unchecked((uint) 32))}));
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r4_o);
    _r6_o = ((global::java.util.Vector) _r0_o).elementAt((int) _r5.i);
    _r6_o = _r6_o;
    _r4_o = ((global::com.codename1.io.NetworkEvent) _r6_o).getMessage();
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r4_o);
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).toString();
    ((global::java.io.IOException) _r2_o).@this((global::java.lang.String) _r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.io.IOException) _r2_o);
    label82:;
    return (global::com.codename1.facebook.Post) _r1_o;
//XMLVM_END_WRAPPER[com.codename1.facebook.FaceBookAccess: com.codename1.facebook.Post getPost(java.lang.String, boolean)]
}
Exemple #2
0
private void init(global::java.util.Hashtable n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.facebook.Photo: void init(java.util.Hashtable)]
    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._nExceptionAdapter _ex = null;
    _r10_o = this;
    _r11_o = n1;
    base.copy((global::java.util.Hashtable) _r11_o);
    // Value=from
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)102)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 109))}));
    _r3_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r3_o = _r3_o;
    if (_r3_o == null) goto label18;
    _r9_o = ((global::com.codename1.facebook.Photo) _r10_o)._ffrom;
    ((global::com.codename1.facebook.User) _r9_o).copy((global::java.util.Hashtable) _r3_o);
    label18:;
    // Value=icon
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)105)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._ficonUrl = (global::java.lang.String) _r9_o;
    // Value=picture
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)112)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._fpictureUrl = (global::java.lang.String) _r9_o;
    // Value=source
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)115)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._fsourceUrl = (global::java.lang.String) _r9_o;
    // Value=height
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 116))}));
    _r4_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r4_o = _r4_o;
    if (_r4_o == null) goto label64;
    _r9.i = global::java.lang.Integer.parseInt((global::java.lang.String) _r4_o);
    ((global::com.codename1.facebook.Photo) _r10_o)._fheight = _r9.i;
    label64:;
    // Value=width
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)119)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104))}));
    _r8_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r8_o = _r8_o;
    if (_r8_o == null) goto label80;
    _r9.i = global::java.lang.Integer.parseInt((global::java.lang.String) _r8_o);
    ((global::com.codename1.facebook.Photo) _r10_o)._fwidth = _r9.i;
    label80:;
    // Value=link
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 107))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._flink = (global::java.lang.String) _r9_o;
    // Value=created_time
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._fcreated_1time = (global::java.lang.String) _r9_o;
    // Value=updated_time
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)117)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._fupdated_1time = (global::java.lang.String) _r9_o;
    // Value=position
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)112)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r7_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r7_o = _r7_o;
    if (_r7_o == null) goto label126;
    _r9.i = global::java.lang.Integer.parseInt((global::java.lang.String) _r7_o);
    ((global::com.codename1.facebook.Photo) _r10_o)._fposition = _r9.i;
    label126:;
    // Value=images
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115))}));
    _r9_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r9_o = _r9_o;
    ((global::com.codename1.facebook.Photo) _r10_o)._fimages = (global::java.util.Vector) _r9_o;
    // Value=comments
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 115))}));
    _r2_o = ((global::java.util.Hashtable) _r11_o).get((global::java.lang.Object) _r9_o);
    _r2_o = _r2_o;
    if (_r2_o == null) goto label190;
    _r9_o = new global::java.util.Vector();
    ((global::java.util.Vector) _r9_o).@this();
    ((global::com.codename1.facebook.Photo) _r10_o)._fcomments = (global::java.util.Vector) _r9_o;
    // Value=data
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)100)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97))}));
    _r1_o = ((global::java.util.Hashtable) _r2_o).get((global::java.lang.Object) _r9_o);
    _r1_o = _r1_o;
    _r5.i = 0;
    label162:;
    _r9.i = ((global::java.util.Vector) _r1_o).size();
    if (_r5.i >= _r9.i) goto label190;
    _r0_o = ((global::java.util.Vector) _r1_o).elementAt((int) _r5.i);
    _r0_o = _r0_o;
    _r6_o = new global::com.codename1.facebook.Post();
    ((global::com.codename1.facebook.Post) _r6_o).@this();
    ((global::com.codename1.facebook.Post) _r6_o).copy((global::java.util.Hashtable) _r0_o);
    _r9_o = ((global::com.codename1.facebook.Photo) _r10_o)._fcomments;
    ((global::java.util.Vector) _r9_o).addElement((global::java.lang.Object) _r6_o);
    _r5.i = _r5.i + 1;
    goto label162;
    label190:;
    return;
//XMLVM_END_WRAPPER[com.codename1.facebook.Photo: void init(java.util.Hashtable)]
}