public class PassSelectionActivity extends AppCompatActivity implements FetchBookingFormCallback
Requires a List<Pass>
object passes as "EXTRA_PASS_ACTIVITY_PASSES" extra and a Product
object
passed as "EXTRA_PASS_ACTIVITY_PRODUCT". If either of those is null or missing the activity will finish with no result!
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_FLAVOUR
Optional String representing the selected flavour.
|
static java.lang.String |
EXTRA_PASSES
Expects a list of Pass objects.
|
static java.lang.String |
EXTRA_PRODUCT
Expects a Product object.
|
Constructor and Description |
---|
PassSelectionActivity() |
Modifier and Type | Method and Description |
---|---|
int |
getFieldCount(int sectionId) |
FormFieldType |
getFieldType(int sectionId,
int fieldId) |
FormMessage |
getMessage(int sectionId,
int fieldId) |
FormModel |
getModel(int sectionId,
int fieldId) |
int |
getSectionCount() |
FormHeader |
getSectionHeader(int sectionId) |
java.lang.Object |
getValue(int sectionId,
int fieldId) |
void |
onBookingFormFetchError(java.lang.Error error) |
void |
onBookingFormFetchSuccess(BookingForm bookingForm) |
protected void |
onCreate(Bundle savedInstanceState) |
void |
onFormValueChanged(int _sectionId,
int fieldId,
java.lang.Object value) |
boolean |
onOptionsItemSelected(MenuItem item) |
protected void |
onResume() |
protected void |
onSaveInstanceState(Bundle outState) |
public static final java.lang.String EXTRA_PASSES
public static final java.lang.String EXTRA_PRODUCT
public static final java.lang.String EXTRA_FLAVOUR
protected void onCreate(Bundle savedInstanceState)
public int getSectionCount()
public int getFieldCount(int sectionId)
public FormModel getModel(int sectionId, int fieldId)
public FormFieldType getFieldType(int sectionId, int fieldId)
public FormHeader getSectionHeader(int sectionId)
public FormMessage getMessage(int sectionId, int fieldId)
public java.lang.Object getValue(int sectionId, int fieldId)
public void onFormValueChanged(int _sectionId, int fieldId, java.lang.Object value)
public void onBookingFormFetchSuccess(BookingForm bookingForm)
onBookingFormFetchSuccess
in interface FetchBookingFormCallback
public void onBookingFormFetchError(java.lang.Error error)
onBookingFormFetchError
in interface FetchBookingFormCallback
protected void onSaveInstanceState(Bundle outState)
public boolean onOptionsItemSelected(MenuItem item)
protected void onResume()