|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--st.Session
Helper for managing the shopping session with the server.
Constructor Summary | |
Session(SmartTicket st)
|
Method Summary | |
void |
cancelSeats()
Cancel the purchase. |
void |
close()
Close the session. |
void |
confirmSeats(java.lang.String creditCardCheck)
Confirm the purchase. |
void |
createUser(java.lang.String userID,
java.lang.String password,
int zipCode,
java.lang.String creditCard,
byte previewMode)
Create a new user account. |
boolean |
isNewUser()
Indicate whether the session is for a new user (one who doesn't have an account). |
void |
loadLocales(LocaleList ll)
Load the list of locales available for this application. |
void |
loadLocations(LocationList ll,
int movieID)
Load the locations for the given movie. |
void |
loadMessages(int localeID)
Load into the record store the localized messages for the locale with the given ID. |
void |
loadMovies(MovieList ml)
Load movie data. |
void |
loadPoster(ImageCanvas ic,
java.lang.String posterURL)
Load a poster. |
void |
loadSeatingPlan(SeatingCanvas sc,
int showID,
java.lang.String movieTitle,
java.lang.String showtime)
Load the given seating canvas with the data of the seating plan for the given show. |
void |
loadShowtimes(ShowtimeList sl,
int movieID,
int locationID)
Load showtimes for the given movie at the given location. |
void |
login()
Login to server. |
void |
open()
Open the session. |
javax.microedition.rms.RecordStore |
openMessageStore(boolean create)
Open the record store for storing localized messages. |
void |
reserveSeats(ConfirmForm cf,
int[] selectedSeats,
java.lang.String movieTitle,
java.lang.String showtime)
Reserve the selected seats. |
void |
run()
run method for this session - from here we call the individual methods that service the requests |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Session(SmartTicket st)
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void open()
public boolean isNewUser()
public void close()
public void login()
public void loadLocales(LocaleList ll)
ll
- the list to populate with locale data.public void loadMessages(int localeID)
public void createUser(java.lang.String userID, java.lang.String password, int zipCode, java.lang.String creditCard, byte previewMode)
userID
- the user name.password
- the user's password.zipCode
- the user's zipCode.creditCard
- the user's credit card number.previewMode
- the user's preview mode preference.public void loadMovies(MovieList ml)
ml
- the movie list to populate with the data.public void loadPoster(ImageCanvas ic, java.lang.String posterURL)
ic
- the ImageCanvas on which to display the poster.posterURL
- the URL of the poster.public void loadLocations(LocationList ll, int movieID)
ll
- the location list to populate.movieID
- the ID of the movie.public void loadShowtimes(ShowtimeList sl, int movieID, int locationID)
sl
- the list to populate with showtime data.movieID
- the ID of the movie.locationID
- the ID of the location.public void loadSeatingPlan(SeatingCanvas sc, int showID, java.lang.String movieTitle, java.lang.String showtime)
sc
- the seating canvas which needs the data.showID
- the ID of the show.movieTitle
- the title of the movie (for display).showtime
- the time of the movie (for display).public void reserveSeats(ConfirmForm cf, int[] selectedSeats, java.lang.String movieTitle, java.lang.String showtime)
cf
- the confirmation form into which the confirmation
data should be loaded.selectedSeats
- the indices of the selected seats in the
byte array representing the seating plan.movieTitle
- the title of the movie (for display).showtime
- the time of the showing (for display).public void confirmSeats(java.lang.String creditCardCheck)
creditCardCheck
- the last four digits of the credit card
number, as a security check.public void cancelSeats()
public javax.microedition.rms.RecordStore openMessageStore(boolean create) throws javax.microedition.rms.RecordStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |