mLink

16:39:09.555 INFO  jd.cli.Main - Decompiling mLink.jar
public abstract interface a
{
  public abstract void SMSCommandAction(int paramInt, String paramString1, String paramString2);
}

/* Location:
 * Qualified Name:     a
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.InputStream;

public final class b
{
  private String jdField_a_of_type_JavaLangString = "";
  private String jdField_b_of_type_JavaLangString = "";
  private String jdField_c_of_type_JavaLangString = "";
  private String jdField_d_of_type_JavaLangString = "";
  private String jdField_e_of_type_JavaLangString = "";
  private long jdField_a_of_type_Long = 0L;
  private long jdField_b_of_type_Long = 0L;
  private long jdField_c_of_type_Long = 0L;
  private boolean jdField_a_of_type_Boolean = false;
  private boolean jdField_b_of_type_Boolean = false;
  private boolean jdField_c_of_type_Boolean = false;
  private String jdField_f_of_type_JavaLangString = "";
  private int jdField_a_of_type_Int = 0;
  private int jdField_b_of_type_Int = 0;
  private long jdField_d_of_type_Long = 0L;
  private long jdField_e_of_type_Long = 0L;
  private long jdField_f_of_type_Long = 0L;
  
  public b() {}
  
  public b(byte[] paramArrayOfByte)
  {
    Object localObject = paramArrayOfByte;
    paramArrayOfByte = this;
    localObject = new ByteArrayInputStream((byte[])localObject);
    localObject = new DataInputStream((InputStream)localObject);
    try
    {
      jdField_a_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_b_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_c_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_d_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_e_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_a_of_type_Long = ((DataInputStream)localObject).readLong();
      jdField_b_of_type_Long = ((DataInputStream)localObject).readLong();
      jdField_c_of_type_Long = ((DataInputStream)localObject).readLong();
      jdField_a_of_type_Boolean = ((DataInputStream)localObject).readBoolean();
      jdField_b_of_type_Boolean = ((DataInputStream)localObject).readBoolean();
      jdField_c_of_type_Boolean = ((DataInputStream)localObject).readBoolean();
      jdField_f_of_type_JavaLangString = ((DataInputStream)localObject).readUTF();
      jdField_a_of_type_Int = ((DataInputStream)localObject).readShort();
      jdField_b_of_type_Int = ((DataInputStream)localObject).readShort();
      jdField_d_of_type_Long = ((DataInputStream)localObject).readLong();
      jdField_e_of_type_Long = ((DataInputStream)localObject).readLong();
      jdField_f_of_type_Long = ((DataInputStream)localObject).readLong();
      return;
    }
    catch (Exception localException) {}
  }
  
  public final void a()
  {
    jdField_a_of_type_Int = 0;
  }
  
  public final int a()
  {
    return jdField_a_of_type_Int;
  }
  
  public final long a()
  {
    return jdField_f_of_type_Long;
  }
  
  public final void a(long paramLong)
  {
    jdField_f_of_type_Long = paramLong;
  }
  
  public final void a(int paramInt)
  {
    jdField_b_of_type_Int = paramInt;
  }
  
  public final int b()
  {
    return jdField_b_of_type_Int;
  }
  
  public final void b(long paramLong)
  {
    jdField_d_of_type_Long = paramLong;
  }
  
  public final long b()
  {
    return jdField_d_of_type_Long;
  }
  
  public final void a(String paramString)
  {
    jdField_a_of_type_JavaLangString = paramString;
  }
  
  public final String a()
  {
    return jdField_a_of_type_JavaLangString;
  }
  
  public final void b(String paramString)
  {
    jdField_b_of_type_JavaLangString = paramString;
  }
  
  public final String b()
  {
    return jdField_b_of_type_JavaLangString;
  }
  
  public final void c(String paramString)
  {
    jdField_c_of_type_JavaLangString = paramString;
  }
  
  public final String c()
  {
    return jdField_c_of_type_JavaLangString;
  }
  
  public final void d(String paramString)
  {
    jdField_d_of_type_JavaLangString = paramString;
  }
  
  public final String d()
  {
    return jdField_d_of_type_JavaLangString;
  }
  
  public final void e(String paramString)
  {
    jdField_f_of_type_JavaLangString = paramString;
  }
  
  public final String e()
  {
    return jdField_f_of_type_JavaLangString;
  }
  
  public final void f(String paramString)
  {
    jdField_e_of_type_JavaLangString = paramString;
  }
  
  public final String f()
  {
    return jdField_e_of_type_JavaLangString;
  }
  
  public final void c(long paramLong)
  {
    jdField_a_of_type_Long = paramLong;
  }
  
  public final long c()
  {
    return jdField_a_of_type_Long;
  }
  
  public final void d(long paramLong)
  {
    jdField_b_of_type_Long = paramLong;
  }
  
  public final long d()
  {
    return jdField_b_of_type_Long;
  }
  
  public final void e(long paramLong)
  {
    jdField_c_of_type_Long = paramLong;
  }
  
  public final long e()
  {
    return jdField_c_of_type_Long;
  }
  
  public final void a(boolean paramBoolean)
  {
    jdField_a_of_type_Boolean = paramBoolean;
  }
  
  public final boolean a()
  {
    return jdField_a_of_type_Boolean;
  }
  
  public final void b(boolean paramBoolean)
  {
    jdField_b_of_type_Boolean = paramBoolean;
  }
  
  public final boolean b()
  {
    return jdField_b_of_type_Boolean;
  }
  
  public final void c(boolean paramBoolean)
  {
    jdField_c_of_type_Boolean = paramBoolean;
  }
  
  public final boolean c()
  {
    return jdField_c_of_type_Boolean;
  }
  
  public final byte[] a()
  {
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    DataOutputStream localDataOutputStream = new DataOutputStream(localByteArrayOutputStream);
    try
    {
      localDataOutputStream.writeUTF(jdField_a_of_type_JavaLangString);
      localDataOutputStream.writeUTF(jdField_b_of_type_JavaLangString);
      localDataOutputStream.writeUTF(jdField_c_of_type_JavaLangString);
      localDataOutputStream.writeUTF(jdField_d_of_type_JavaLangString);
      localDataOutputStream.writeUTF(jdField_e_of_type_JavaLangString);
      localDataOutputStream.writeLong(jdField_a_of_type_Long);
      localDataOutputStream.writeLong(jdField_b_of_type_Long);
      localDataOutputStream.writeLong(jdField_c_of_type_Long);
      localDataOutputStream.writeBoolean(jdField_a_of_type_Boolean);
      localDataOutputStream.writeBoolean(jdField_b_of_type_Boolean);
      localDataOutputStream.writeBoolean(jdField_c_of_type_Boolean);
      localDataOutputStream.writeUTF(jdField_f_of_type_JavaLangString);
      localDataOutputStream.writeShort(jdField_a_of_type_Int);
      localDataOutputStream.writeShort(jdField_b_of_type_Int);
      localDataOutputStream.writeLong(jdField_d_of_type_Long);
      localDataOutputStream.writeLong(jdField_e_of_type_Long);
      localDataOutputStream.writeLong(jdField_f_of_type_Long);
    }
    catch (Exception localException) {}
    return localByteArrayOutputStream.toByteArray();
  }
}

/* Location:
 * Qualified Name:     b
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
import com.mlink.g;
import java.util.Vector;

public final class c
{
  private b[] a = null;
  
  public final void a(Vector paramVector)
  {
    a = new b[paramVector.size()];
    for (int i = 0; i < paramVector.size(); i++) {
      a[i] = ((b)paramVector.elementAt(i));
    }
  }
  
  public final String a()
  {
    String str = "";
    for (int i = 0; i < a.length; i++)
    {
      b localb = a[i];
      str = str + "[" + localb.f() + "|" + localb.b() + "|" + localb.a() + "|" + g.a(localb.c()) + " " + g.b(localb.c()) + "|" + g.a(localb.e()) + " " + g.b(localb.e()) + "|" + "]";
    }
    return str;
  }
}

/* Location:
 * Qualified Name:     c
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
package com.mlink;

public final class a
{
  public static int a;
  public static int b;
  public static int c;
  public static int d;
  public static int e;
  public static int f;
  public static String a;
  public static int g;
  public static long a;
  private static int h;
  public static String[] a;
  public static String[] b;
  public static String[] c;
  public static String[] d;
  
  public static boolean a()
  {
    long l = System.currentTimeMillis();
    boolean bool = false;
    if (jdField_a_of_type_Long < l - h)
    {
      bool = true;
      jdField_a_of_type_Long = l;
    }
    return bool;
  }
  
  static
  {
    jdField_a_of_type_Int = 1;
    jdField_b_of_type_Int = 16753920;
    jdField_c_of_type_Int = 11063545;
    jdField_d_of_type_Int = 1256240;
    e = 37776;
    f = 83591;
    jdField_a_of_type_JavaLangString = "2728";
    g = 0;
    jdField_a_of_type_Long = 0L;
    h = 500;
    jdField_a_of_type_ArrayOfJavaLangString = new String[] { "Midlands", "North East", "North West", "Shires & Essex", "Scotland West", "Southern Counties", "Wales", "Yorkshire", "Greenline", "Glasgow Flyer" };
    jdField_b_of_type_ArrayOfJavaLangString = new String[] { "ADELAIDE", "ANTRIM", "BALLYCARRY", "BALLYMENA", "BALLYMONEY", "BALMORAL", "BANGOR", "BANGOR WEST", "BELLARENA", "BOTANIC", "BRIDGE END", "CARNALEA", "CARRICKFERGUS", "CASTLEROCK", "CENTRAL", "CITY HOSPITAL", "CLIPPERSTOWN", "COLERAINE", "CULLYBACKEY", "CULTRA", "DERRIAGHY", "DERRY", "DHU VARREN", "DOWNSHIRE", "DUNMURRY", "FINAGHY", "GLYNN", "GREENISLAND", "GT.VICTORIA ST", "HELEN'S BAY", "HILDEN", "HOLYWOOD", "JORDANSTOWN", "L/DERRY", "LONDONDERRY", "LAMBEG", "LARNE", "LARNE HARBOUR", "LISBURN", "LURGAN", "MAGHERAMORNE", "MARINO", "MOIRA", "MOSSLEY WEST", "NEWRY", "PORTADOWN", "PORTRUSH", "POYNTZPASS", "SCARVA", "SEAHILL", "SYDENHAM", "TITANIC QUARTER", "TROOPERSLANE", "UNIVERSITY", "WHITEABBEY", "WHITEHEAD", "YORKGATE" };
    { "Midlands", "North East", "North West", "Shires & Essex", "Scotland West", "Southern Counties", "Wales", "Yorkshire", "Greenline" }[9] = "Glasgow Flyer";
    { { "Burton & Swadlincote", "Cannock", "Coalville", "Derby", "Leicester City Plus", "Shrewsbury", "Stafford", "Sutton & Birmingham", "Tamworth", "Telford", "Midlands" }, { "Ashington", "Bishop Auckland", "Blyth", "Brandon", "Co. Durham", "Cramlington", "Darlington Town", "Darlington Borough", "Durham City", "Durham District", "Morpeth", "Redcar", "Teesside/East Cleveland", "Tyne & Wear", "North East - All Zones" }, { "Bolton & Wigan", "Deeside", "Halton", "Liverpool", "Manchester", "North West", "North West & Wales" }, { "Aylesbury", "Harlow", "Hemel Hempstead", "High Wycombe Inner", "High Wycombe Outer", "Luton & Dunstable", "Milton Keynes", "North Herts", "Oxford", "Reading", "Southend", "Southend (Off Peak)", "Stevenage", "Watford", "Welwyn & Hatfield", "West Herts", "All Zones - S+E" }, { "Scotland West", "Scotland West Off Peak" }, { "Dartford", "Gravesend", "Thameside Urban", "Guildford", "Maidstone", "Maidstone Plus", "Medway Inner", "Medway", "Sittingbourne", "Sheppey", "Sheppey Plus", "Tonbridge", "Tunbridge Wells", "Tonbridge & Tun Wells", "Woking", "South East", "Surrey & West Sussex", "Southend", "Southend (off peak)", "Sevenoaks", "Sevenoaks Plus" }, { "Aberystwyth", "Bangor", "Deeside", "Wrexham", "North West", "North West & Wales" }, { "Selby", "Yorkshire", "West Yorkshire" }, { "757 LLA-LON", "757 LON-LLA", "757 LTC-LON", "757 LON-LTC", "757 LUT-LON", "797 HAT-LON", "797 STV-LON" } }[9] = { "Airport" };
    { { "Burton & Swadlincote", "Cannock", "Coalville", "Derby", "Leicester Local", "Leicester City Plus", "Shrewsbury", "Stafford", "Sutton & Birmingham", "Tamworth", "Telford", "Midlands" }, { "Ashington", "Bishop Auckland", "Blyth", "Brandon", "Co. Durham", "Cramlington", "Darlington Town", "Darlington Borough", "Durham City", "Durham District", "Morpeth", "Redcar", "Teesside/East Cleveland", "Tyne & Wear", "North East - All Zones" }, { "Bolton & Wigan", "Deeside", "Halton", "Liverpool", "Manchester", "North West", "North West & Wales" }, { "Aylesbury", "Harlow", "Hemel Hempstead", "High Wycombe Inner", "High Wycombe Outer", "Luton & Dunstable", "Milton Keynes", "North Herts", "Oxford", "Reading", "Southend", "Southend (Off Peak)", "Stevenage", "Watford", "Welwyn & Hatfield", "West Herts", "All Zones - S+E" }, { "Scotland West", "Scotland West Off Peak" }, { "Dartford", "Gravesend", "Thameside Urban", "Guildford", "Maidstone", "Maidstone Plus", "Medway Inner", "Medway", "Sittingbourne", "Sheppey", "Sheppey Plus", "Tonbridge", "Tunbridge Wells", "Tonbridge & Tun Wells", "Woking", "South East", "Surrey & West Sussex", "Southend", "Southend (off peak)", "Sevenoaks", "Sevenoaks Plus" }, { "Aberystwyth", "Bangor", "Deeside", "Wrexham", "North West", "North West & Wales" }, { "Selby", "Yorkshire", "West Yorkshire" }, { "757 LLA-LON", "757 LON-LLA", "757 LTC-LON", "757 LON-LTC", "757 LUT-LON", "797 HAT-LON", "797 STV-LON" } }[9] = { "Airport" };
    jdField_c_of_type_ArrayOfJavaLangString = new String[] { "Adult" };
    { "Adult" }[1] = "Student";
    { "Adult" }[1] = "Student";
    { "Adult" }[1] = "All";
    jdField_d_of_type_ArrayOfJavaLangString = new String[] { "Select...", "3 Day Flexi", "Weekly", "Monthly" };
    { "Day", "Weekly", "4 Weekly", "8 Weekly", "12 Weekly", "Annual", "Academic Year", "Autumn Term", "Spring Term", "Spring & Summer", "Summer Term", "2 Terms", "3 Terms", "3 TermsX", "BNU - Weekly", "BNU - 4 Weekly", "BNU - Annual", "Autmn Trm-�85 Funded", "Autmn Trm-�115 Funded", "Autmn Trm-�135 Funded", "Spring Trm-�85 Funded", "Spring Trm-�115 Funded", "Spring Trm-�135 Funded", "Summr Trm-�85 Funded", "Summr Trm-�115 Funded" }[25] = "Summr Trm-�135 Funded";
    { "Day", "Weekly", "4 Weekly", "8 Weekly", "12 Weekly", "Annual", "Academic Year", "Autumn Term", "Spring Term", "Spring & Summer", "Summer Term", "2 Terms", "3 Terms", "3 TermsX", "BNU - Weekly", "BNU - 4 Weekly", "BNU - Annual", "Autmn Trm-�85 Funded", "Autmn Trm-�115 Funded", "Autmn Trm-�135 Funded", "Spring Trm-�85 Funded", "Spring Trm-�115 Funded", "Spring Trm-�135 Funded", "Summr Trm-�85 Funded", "Summr Trm-�115 Funded" }[25] = "Summr Trm-�135 Funded";
    { "Single", "Peak Rtn" }[2] = "Off Peak Rtn";
    { "Single" }[1] = "Return";
    { "How do I buy a ticket once i have downloaded the application?", "How do I activate my m-ticket?", "How do I check the price of the ticket I want before actually purchasing it?", "When I try to buy a ticket I get a �No Service Must Exit Message'", "What if I purchase a ticket, but decide not to travel?", "Can I buy a ticket in advance?", "Every time I try and purchase a ticket I get a �Bad card� error message.", "I�ve bought the wrong ticket by accident? Can I get a refund?", "Do I need to connect to the internet each time I use my ticket?", "What do I need to do when I board the bus?", "What do I do if I forget my PIN Number?", "How do I change my credit / debit card details?" }[12] = "I still need some help, who can I contact?";
    { "From the main menu select �Purchase�. You can select the ticket you require from the drop down menu�s (Region, Period & Zone) It will ask you to enter your PIN code (which has been sent to you by text) Enter the PIN code and the ticket will be then sent to your handset.", "From the main menu select �Use Ticket�. You will be asked �Are You Sure?�  Once the ticket has been activated it becomes valid from that moment and will be automatically removed from your phone after a day, week, or 28 day period depending on the type of ticket you have purchased. Whenever you need to use the ticket, select �Use Ticket� and the ticket will be displayed on your screen.", "From the main menu go to �Ticket Prices� and select the ticket you wish to query by using the drop down menu�s (Region, Period & Zone). You will be asked to enter your PIN code and the price of the ticket will then be displayed on the screen.", "Either you have no signal (are in a bad area) or you do not have the GPRS settings on your phone. Firstly try again in another area. Secondly contact your network provider (O2, Orange, Vodafone, etc) and ask them to ensure your account is setup for GPRS. (they may need to send some settings to your handset) If you continue to experience problems then please call us on 0844 800 44 11 or text ARRIVA to 82500.", "The m-ticket will only become valid when you want it to by activating the m-ticket  If you don�t wish to travel yet, you can select �Preview Ticket� using the options within the application which will display the ticket with a yellow background.", "Yes. Since the ticket is not activated until you select 'Use Ticket', you can decide when the start will be.", "You have probably entered your card details incorrectly at the point of registration. Please re-register at www.arrivabus.co.uk and ensure you input the correct details. You will be sent the application again and you will need to save the new application, and delete the old one. If you continue to experience problems then please call us on 0844 800 44 11 or text ARRIVA to 82500.", "Yes. If you buy the wrong ticket by mistake just give us a call on 0844 800 44 11 and we can delete the ticket from the system and refund the ticket for you, so you can then go back into the application and purchase the correct ticket that you require.", "No, once you have activated your ticket, it is stored locally on the handset and therefore you can say no to access the internet and still access your ticket.", "You need to ensure that you have activated the ticket you wish to use for your journey displayed on your screen. Simply show the ticket to the driver when boarding the bus. The backlight on the screen needs to be on so the ticket can be easily read by the driver.", "It is advisable to change your PIN to something you will remember which you can do from the �Settings� function. If you do forget your PIN number then just give us a call on 0844 800 44 11 and we can send this out to you again.", "You can change your card details by simply going into the Registration function from the main menu and entering the new details. You will be asked to confirm your PIN number and the new details will be uploaded to the system. If you find it easier you can re-register at www.arrivabus.co.uk instead." }[12] = "You can call our customer service team on�0844 800 44 11�(8am until 6pm, Monday to Friday) or e-mail�m-ticket@arriva.co.uk�. Alternatively, if your query is more technical, then text �Arriva� to�82500, and we will call you back.";
  }
}

/* Location:
 * Qualified Name:     com.mlink.a
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
package com.mlink;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public final class aa
  extends Canvas
{
  private final mTicketing jdField_a_of_type_ComMlinkMTicketing;
  private Display jdField_a_of_type_JavaxMicroeditionLcduiDisplay;
  private boolean jdField_a_of_type_Boolean = true;
  private Image jdField_a_of_type_JavaxMicroeditionLcduiImage = null;
  private Image b;
  public String a;
  public String b;
  private String c = "";
  private String d = "";
  public int a;
  private bb jdField_a_of_type_ComMlinkBb = new bb();
  private x jdField_a_of_type_ComMlinkX = new x();
  
  public aa(mTicketing parammTicketing, Display paramDisplay)
  {
    jdField_b_of_type_JavaxMicroeditionLcduiImage = null;
    jdField_a_of_type_JavaLangString = "";
    jdField_b_of_type_JavaLangString = "";
    jdField_a_of_type_Int = 0;
    new x();
    jdField_a_of_type_ComMlinkMTicketing = parammTicketing;
    jdField_a_of_type_JavaxMicroeditionLcduiDisplay = paramDisplay;
    setFullScreenMode(true);
    jdField_a_of_type_Boolean = false;
    try
    {
      jdField_a_of_type_JavaxMicroeditionLcduiImage = Image.createImage("/error.png");
      jdField_b_of_type_JavaxMicroeditionLcduiImage = Image.createImage("/errorMark.png");
    }
    catch (Exception localException) {}
    jdField_a_of_type_JavaxMicroeditionLcduiDisplay.setCurrent(this);
    if (aj.a())
    {
      jdField_a_of_type_ComMlinkX.a(" Ok ");
      jdField_a_of_type_ComMlinkX.f(10);
      jdField_a_of_type_ComMlinkX.d(55);
      jdField_a_of_type_ComMlinkX.e(35);
      jdField_a_of_type_ComMlinkX.a(2);
      jdField_a_of_type_ComMlinkX.b(true);
      jdField_a_of_type_ComMlinkX.b("MEDIUM");
      jdField_a_of_type_ComMlinkX.b(jdField_a_of_type_ComMlinkMTicketing.fullScreenWidth - jdField_a_of_type_ComMlinkX.a());
      jdField_a_of_type_ComMlinkX.c(jdField_a_of_type_ComMlinkMTicketing.fullScreenHeight - jdField_a_of_type_ComMlinkX.b());
      jdField_a_of_type_ComMlinkX.g(5);
      jdField_a_of_type_ComMlinkBb.a(jdField_a_of_type_ComMlinkX);
    }
  }
  
  protected final void keyPressed(int paramInt)
  {
    int i = getGameAction(paramInt);
    String str = getKeyName(paramInt);
    if ((aj.a()) && (jdField_a_of_type_ComMlinkBb.a()))
    {
      switch (paramInt = jdField_a_of_type_ComMlinkBb.a(i, str))
      {
      case 1: 
        break;
      case 4: 
        keyPressed(-6);
        break;
      case 5: 
        keyPressed(-7);
      }
      repaint();
      return;
    }
    if ((str.indexOf("RIGHT") != -1) || (paramInt == -7) || (str.startsWith("SOFT2"))) {
      if ((jdField_a_of_type_Int != 1) && (jdField_a_of_type_ComMlinkMTicketing.MenuOption.equals("PriceGetPlainPur"))) {
        jdField_a_of_type_ComMlinkMTicketing.showPinPurchase(3);
      } else {
        jdField_a_of_type_ComMlinkMTicketing.showMainMenu();
      }
    }
    str.indexOf("LEFT");
    repaint();
  }
  
  protected final void paint(Graphics paramGraphics)
  {
    getWidth();
    getHeight();
    if (!jdField_a_of_type_Boolean)
    {
      paramGraphics.setGrayScale(255);
      paramGraphics.setColor(243, 151, 0);
      paramGraphics.setColor(3388415);
      paramGraphics.setColor(16777215);
      paramGraphics.fillRect(0, 0, getWidth(), getHeight());
      paramGraphics.drawImage(jdField_a_of_type_ComMlinkMTicketing.image, getWidth() / 2, 0, 17);
      paramGraphics.setColor(0);
      Font localFont = Font.getFont(0, 0, 0);
      paramGraphics.setFont(localFont);
      if (aj.a())
      {
        jdField_a_of_type_ComMlinkBb.a(true);
        jdField_a_of_type_ComMlinkBb.a(paramGraphics);
      }
      else
      {
        paramGraphics.drawString("OK", getWidth(), getHeight(), 40);
      }
      int i = jdField_b_of_type_JavaxMicroeditionLcduiImage.getWidth() + 20;
      int k;
      if ((k = localFont.stringWidth(jdField_a_of_type_JavaLangString)) > i) {
        i = k + 10;
      }
      if ((k = localFont.stringWidth(jdField_b_of_type_JavaLangString)) > i) {
        i = k + 10;
      }
      if ((k = localFont.stringWidth(c)) > i) {
        i = k + 10;
      }
      if ((k = localFont.stringWidth(d)) > i) {
        i = k + 10;
      }
      Image localImage;
      Graphics localGraphics;
      (localGraphics = (localImage = Image.createImage(i + 10, (localFont.getHeight() << 2) + (20 + jdField_b_of_type_JavaxMicroeditionLcduiImage.getHeight()))).getGraphics()).setColor(33674);
      localGraphics.fillRect(0, 0, localImage.getWidth(), localImage.getHeight());
      localGraphics.drawImage(jdField_b_of_type_JavaxMicroeditionLcduiImage, localImage.getWidth() / 2, localImage.getHeight() - 5, 33);
      paramGraphics.drawImage(localImage, getWidth() / 2 - localImage.getWidth() / 2, getHeight() / 2 - localImage.getHeight() / 2, 20);
      paramGraphics.setColor(587651);
      int j = localFont.stringWidth(jdField_a_of_type_JavaLangString);
      paramGraphics.drawString(jdField_a_of_type_JavaLangString, getWidth() / 2 - j / 2, getHeight() / 2 - jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2 + 10, 20);
      j = localFont.stringWidth(jdField_b_of_type_JavaLangString);
      paramGraphics.drawString(jdField_b_of_type_JavaLangString, getWidth() / 2 - j / 2, getHeight() / 2 - jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2 + (localFont.getHeight() + 10), 20);
    }
  }
  
  protected final void pointerPressed(int paramInt1, int paramInt2)
  {
    keyPressed(jdField_a_of_type_ComMlinkMTicketing.processPointerPressed(paramInt1, paramInt2));
  }
  
  protected final void showNotify() {}
}

/* Location:
 * Qualified Name:     com.mlink.aa
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
package com.mlink;

import java.io.PrintStream;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public final class ab
  extends Canvas
  implements CommandListener
{
  private final mTicketing jdField_a_of_type_ComMlinkMTicketing;
  private Display jdField_a_of_type_JavaxMicroeditionLcduiDisplay;
  private Image jdField_a_of_type_JavaxMicroeditionLcduiImage;
  private int jdField_a_of_type_Int = 0;
  private ba[] jdField_a_of_type_ArrayOfComMlinkBa;
  private int jdField_b_of_type_Int = 1;
  private int c = 6;
  private boolean jdField_b_of_type_Boolean = false;
  public boolean a;
  private bb jdField_a_of_type_ComMlinkBb = new bb();
  private x jdField_a_of_type_ComMlinkX = new x();
  private x jdField_b_of_type_ComMlinkX = new x();
  
  public ab(mTicketing parammTicketing, Display paramDisplay, boolean paramBoolean)
  {
    jdField_a_of_type_Boolean = false;
    jdField_a_of_type_ComMlinkMTicketing = parammTicketing;
    jdField_a_of_type_JavaxMicroeditionLcduiDisplay = paramDisplay;
    jdField_b_of_type_Boolean = paramBoolean;
    try
    {
      jdField_a_of_type_JavaxMicroeditionLcduiImage = Image.createImage("/arrow.png");
    }
    catch (Exception localException) {}
    setFullScreenMode(true);
    jdField_a_of_type_JavaxMicroeditionLcduiDisplay.setCurrent(this);
    if (aj.a())
    {
      jdField_a_of_type_ComMlinkX.a("Back");
      jdField_a_of_type_ComMlinkX.f(10);
      jdField_a_of_type_ComMlinkX.d(55);
      jdField_a_of_type_ComMlinkX.e(35);
      jdField_a_of_type_ComMlinkX.a(2);
      jdField_a_of_type_ComMlinkX.b(true);
      jdField_a_of_type_ComMlinkX.b("MEDIUM");
      jdField_a_of_type_ComMlinkX.b(jdField_a_of_type_ComMlinkMTicketing.fullScreenWidth / 2 - (jdField_a_of_type_ComMlinkX.a() + 5));
      jdField_a_of_type_ComMlinkX.c(jdField_a_of_type_ComMlinkMTicketing.fullScreenHeight - jdField_a_of_type_ComMlinkX.b());
      jdField_a_of_type_ComMlinkX.g(4);
      jdField_a_of_type_ComMlinkX.b(true);
      jdField_a_of_type_ComMlinkBb.a(jdField_a_of_type_ComMlinkX);
      jdField_b_of_type_ComMlinkX.a(" Get Prices ");
      jdField_b_of_type_ComMlinkX.f(10);
      jdField_b_of_type_ComMlinkX.d(55);
      jdField_b_of_type_ComMlinkX.e(35);
      jdField_b_of_type_ComMlinkX.a(2);
      jdField_b_of_type_ComMlinkX.b(true);
      jdField_b_of_type_ComMlinkX.b("MEDIUM");
      jdField_b_of_type_ComMlinkX.b(jdField_a_of_type_ComMlinkMTicketing.fullScreenWidth / 2 + 5);
      jdField_b_of_type_ComMlinkX.c(jdField_a_of_type_ComMlinkMTicketing.fullScreenHeight - jdField_a_of_type_ComMlinkX.b());
      jdField_b_of_type_ComMlinkX.g(5);
      jdField_b_of_type_ComMlinkX.b(true);
      jdField_a_of_type_ComMlinkBb.a(jdField_b_of_type_ComMlinkX);
    }
    jdField_a_of_type_ArrayOfComMlinkBa = new ba[c];
    for (parammTicketing = 0; parammTicketing < c; parammTicketing++)
    {
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing] = new ba();
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(jdField_a_of_type_ComMlinkMTicketing);
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c(parammTicketing);
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(0, 49, 123);
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].b("");
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a("text");
      jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(jdField_a_of_type_JavaxMicroeditionLcduiImage);
      switch (parammTicketing)
      {
      case 0: 
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c("From");
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(a.b);
        if (!jdField_b_of_type_Boolean) {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(jdField_a_of_type_ComMlinkMTicketing.pf);
        } else {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(jdField_a_of_type_ComMlinkMTicketing.RegionSelected);
        }
        break;
      case 1: 
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c("To");
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(a.b);
        if (!jdField_b_of_type_Boolean) {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(0);
        } else {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(jdField_a_of_type_ComMlinkMTicketing.DepartFromSelected);
        }
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].b(true);
        break;
      case 2: 
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c("Type");
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(a.c);
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(0);
        break;
      case 3: 
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c("Period");
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(a.jdField_d_of_type_ArrayOfJavaLangString);
        if (!jdField_b_of_type_Boolean) {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(0);
        } else {
          jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(0);
        }
        break;
      case 4: 
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].c("Promo Code");
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].b(true);
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].a(ba.a);
        jdField_a_of_type_ArrayOfComMlinkBa[parammTicketing].b("");
      }
    }
    setCommandListener(this);
  }
  
  protected final void keyPressed(int paramInt)
  {
    String str = getKeyName(paramInt).toUpperCase();
    int i = getGameAction(paramInt);
    if ((aj.a()) && (jdField_a_of_type_ComMlinkBb.a()))
    {
      switch (i = jdField_a_of_type_ComMlinkBb.a(i, str))
      {
      case 1: 
        jdField_b_of_type_Int = 1;
        break;
      case 4: 
        keyPressed(-6);
        break;
      case 5: 
        keyPressed(-7);
      }
      repaint();
      return;
    }
    if ((paramInt == -5) || (paramInt == -3) || (paramInt == -4) || (str.indexOf("ENTER") >= 0))
    {
      System.out.println("mainscreen fired pressed:" + i + " " + 53 + " " + 8 + " " + str);
      if (jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a()) {
        jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a(false);
      } else {
        jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a(true);
      }
    }
    if (jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a())
    {
      jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a(paramInt, str);
    }
    else
    {
      if (((paramInt == -6) || (str.startsWith("SOFT1")) || (str.indexOf("ESCAPE") >= 0)) && (a.a())) {
        jdField_a_of_type_ComMlinkMTicketing.showMainMenu();
      }
      if (((paramInt == -7) || (str.startsWith("SOFT2"))) && (a.a()))
      {
        jdField_a_of_type_ComMlinkMTicketing.TicketType.equals(jdField_a_of_type_ArrayOfComMlinkBa[0].a());
        if (jdField_a_of_type_ArrayOfComMlinkBa[3].a().equals("Select..."))
        {
          Alert localAlert;
          (localAlert = new Alert("mLink", "Please select a valid period", null, AlertType.INFO)).setTimeout(-2);
          jdField_a_of_type_JavaxMicroeditionLcduiDisplay.setCurrent(localAlert, this);
        }
        else if (jdField_a_of_type_Boolean)
        {
          jdField_a_of_type_ComMlinkMTicketing.processTransaction(333);
        }
        else
        {
          jdField_a_of_type_ComMlinkMTicketing.processTransaction(3333);
        }
      }
      if ((str.indexOf("UP") >= 0) && (paramInt != 50)) {
        paramInt = -1;
      }
      if ((str.indexOf("DOWN") >= 0) && (paramInt != 56)) {
        paramInt = -2;
      }
      switch (paramInt)
      {
      case -1: 
        jdField_b_of_type_Int -= 1;
        if (jdField_b_of_type_Int <= 0) {
          jdField_b_of_type_Int = 5;
        }
        break;
      case -2: 
        jdField_b_of_type_Int += 1;
        if (jdField_b_of_type_Int > 5)
        {
          if (aj.a())
          {
            jdField_a_of_type_ComMlinkBb.a(true);
            jdField_b_of_type_Int = 5;
          }
          else
          {
            jdField_b_of_type_Int = 5;
          }
        }
        else if (aj.a()) {
          jdField_a_of_type_ComMlinkBb.a(false);
        }
        break;
      }
    }
    jdField_a_of_type_ComMlinkMTicketing.RegionSelectedValue = jdField_a_of_type_ArrayOfComMlinkBa[0].a();
    jdField_a_of_type_ComMlinkMTicketing.TicketType = jdField_a_of_type_ArrayOfComMlinkBa[3].a();
    jdField_a_of_type_ComMlinkMTicketing.Travellers = jdField_a_of_type_ArrayOfComMlinkBa[2].a();
    jdField_a_of_type_ComMlinkMTicketing.ZoneSelected = jdField_a_of_type_ArrayOfComMlinkBa[1].a();
    jdField_a_of_type_ComMlinkMTicketing.currentPromoCode = jdField_a_of_type_ArrayOfComMlinkBa[4].a();
    System.out.println("Selected:" + jdField_a_of_type_ComMlinkMTicketing.RegionSelectedValue + " " + jdField_a_of_type_ComMlinkMTicketing.TicketType + " " + jdField_a_of_type_ComMlinkMTicketing.Travellers + " " + jdField_a_of_type_ComMlinkMTicketing.ZoneSelected);
    repaint();
  }
  
  protected final void paint(Graphics paramGraphics)
  {
    paramGraphics.setColor(243, 151, 0);
    paramGraphics.setColor(3388415);
    paramGraphics.setColor(16777215);
    paramGraphics.fillRect(0, 0, getWidth(), getHeight());
    paramGraphics.drawImage(jdField_a_of_type_ComMlinkMTicketing.image, getWidth() / 2, 0, 17);
    if (jdField_a_of_type_Boolean)
    {
      localFont = Font.getFont(0, 2, 0);
      paramGraphics.setFont(localFont);
      paramGraphics.setColor(a.jdField_d_of_type_Int);
      if (getHeight() > 128) {
        paramGraphics.drawString("Ticket Prices", getWidth() / 2, jdField_a_of_type_ComMlinkMTicketing.image.getHeight() + 2, 17);
      }
    }
    else
    {
      localFont = Font.getFont(0, 2, 0);
      paramGraphics.setFont(localFont);
      paramGraphics.setColor(a.jdField_d_of_type_Int);
      if (getHeight() > 128) {
        paramGraphics.drawString("Ticket Purchase", getWidth() / 2, jdField_a_of_type_ComMlinkMTicketing.image.getHeight() + 2, 17);
      }
    }
    paramGraphics.setColor(36, 0, 74);
    paramGraphics.setColor(255, 155, 0);
    Font localFont = Font.getFont(0, 1, 8);
    paramGraphics.setFont(localFont);
    localFont.getHeight();
    jdField_a_of_type_Int = 0;
    for (int i = 0; i < c; i++) {
      if (localFont.stringWidth(jdField_a_of_type_ArrayOfComMlinkBa[i].b()) > jdField_a_of_type_Int) {
        jdField_a_of_type_Int = localFont.stringWidth(jdField_a_of_type_ArrayOfComMlinkBa[i].b());
      }
    }
    jdField_a_of_type_Int += 3;
    i = getHeight() / 2 - localFont.getHeight() * 3;
    paramGraphics.setColor(255, 255, 255);
    int j = 0;
    for (int k = 0; k < c - 1; k++)
    {
      if (k == jdField_b_of_type_Int - 1)
      {
        jdField_a_of_type_ArrayOfComMlinkBa[k].c(true);
        if (jdField_a_of_type_ArrayOfComMlinkBa[k].a()) {
          j = 1;
        }
      }
      else
      {
        jdField_a_of_type_ArrayOfComMlinkBa[k].c(false);
      }
      jdField_a_of_type_ArrayOfComMlinkBa[k].b(jdField_a_of_type_Int);
      jdField_a_of_type_ArrayOfComMlinkBa[k].e(getWidth());
      jdField_a_of_type_ArrayOfComMlinkBa[k].f(getHeight());
      jdField_a_of_type_ArrayOfComMlinkBa[k].d(i);
      jdField_a_of_type_ArrayOfComMlinkBa[k].a(localFont);
      jdField_a_of_type_ArrayOfComMlinkBa[k].a(paramGraphics);
    }
    jdField_a_of_type_ArrayOfComMlinkBa[(jdField_b_of_type_Int - 1)].a(paramGraphics);
    if (j == 0)
    {
      paramGraphics.setColor(0, 0, 0);
      if (aj.a())
      {
        if (jdField_a_of_type_Boolean) {
          jdField_a_of_type_ComMlinkBb.a[1].a("Get Price");
        } else {
          jdField_a_of_type_ComMlinkBb.a[1].a("Buy");
        }
        jdField_a_of_type_ComMlinkBb.a(paramGraphics);
        return;
      }
      paramGraphics.drawString("Back", 0, getHeight(), 36);
      if (jdField_a_of_type_Boolean)
      {
        paramGraphics.drawString("Get Price", getWidth(), getHeight(), 40);
        return;
      }
      paramGraphics.drawString("Buy", getWidth(), getHeight(), 40);
    }
  }
  
  protected final void pointerPressed(int paramInt1, int paramInt2)
  {
    keyPressed(jdField_a_of_type_ComMlinkMTicketing.processPointerPressed(paramInt1, paramInt2));
  }
  
  protected final void showNotify() {}
  
  public final void commandAction(Command paramCommand, Displayable paramDisplayable)
  {
    switch (paramCommand.getCommandType())
    {
    case 3: 
      keyPressed(-6);
      return;
    case 7: 
      keyPressed(-6);
    }
  }
}

/* Location:
 * Qualified Name:     com.mlink.ab
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
package com.mlink;

public abstract interface ac
{
  public abstract void a(boolean paramBoolean, am paramam);
  
  public abstract int a();
  
  public abstract int a(byte[] paramArrayOfByte1, int paramInt1, byte[] paramArrayOfByte2, int paramInt2);
  
  public abstract void a();
}

/* Location:
 * Qualified Name:     com.mlink.ac
 * Java Class Version: 1.3 (47.0)
 * JD-Core Version:    0.7.1
 */
package com.mlink;

public final class ad
  implements ac
{
  private static final byte[] jdField_a_of_type_ArrayOfByte = { 99, 124, 119, 123, -14, 107, 111, -59, 48, 1, 103, 43, -2, -41, -85, 118, -54, -126, -55, 125, -6, 89, 71, -16, -83, -44, -94, -81, -100, -92, 114, -64, -73, -3, -109, 38, 54, 63, -9, -52, 52, -91, -27, -15, 113, -40, 49, 21, 4, -57, 35, -61, 24, -106, 5, -102, 7, 18, Byte.MIN_VALUE, -30, -21, 39, -78, 117, 9, -125, 44, 26, 27, 110, 90, -96, 82, 59, -42, -77, 41, -29, 47, -124, 83, -47, 0, -19, 32, -4, -79, 91, 106, -53, -66, 57, 74, 76, 88, -49, -48, -17, -86, -5, 67, 77, 51, -123, 69, -7, 2, Byte.MAX_VALUE, 80, 60, -97, -88, 81, -93, 64, -113, -110, -99, 56, -11, -68, -74, -38, 33, 16, -1, -13, -46, -51, 12, 19, -20, 95, -105, 68, 23, -60, -89, 126, 61, 100, 93, 25, 115, 96, -127, 79, -36, 34, 42, -112, -120, 70, -18, -72, 20, -34, 94, 11, -37, -32, 50, 58, 10, 73, 6, 36, 92, -62, -45, -84, 98, -111, -107, -28, 121, -25, -56, 55, 109, -115, -43, 78, -87, 108, 86, -12, -22, 101, 122, -82, 8, -70, 120, 37, 46, 28, -90, -76, -58, -24, -35, 116, 31, 75, -67, -117, -118, 112, 62, -75, 102, 72, 3, -10, 14, 97, 53, 87, -71, -122, -63, 29, -98, -31, -8, -104, 17, 105, -39, -114, -108, -101, 30, -121, -23, -50, 85, 40, -33, -116, -95, -119, 13, -65, -26, 66, 104, 65, -103, 45, 15, -80, 84, -69, 22 };
  private static final byte[] jdField_b_of_type_ArrayOfByte = { 82, 9, 106, -43, 48, 54, -91, 56, -65, 64, -93, -98, -127, -13, -41, -5, 124, -29, 57, -126, -101, 47, -1, -121, 52, -114, 67, 68, -60, -34, -23, -53, 84, 123, -108, 50, -90, -62, 35, 61, -18, 76, -107, 11, 66, -6, -61, 78, 8, 46, -95, 102, 40, -39, 36, -78, 118, 91, -94, 73, 109, -117, -47, 37, 114, -8, -10, 100, -122, 104, -104, 22, -44, -92, 92, -52, 93, 101, -74, -110, 108, 112, 72, 80, -3, -19, -71, -38, 94, 21, 70, 87, -89, -115, -99, -124, -112, -40, -85, 0, -116, -68, -45, 10, -9, -28, 88, 5, -72, -77, 69, 6, -48, 44, 30, -113, -54, 63, 15, 2, -63, -81, -67, 3, 1, 19
1 2 3 4 5 6 7 8 9 10

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd