Android Open Source - android-pkpass-viewer Event Ticket Pass Strategy






From Project

Back to project page android-pkpass-viewer.

License

The source code is released under:

MIT License

If you think the Android project android-pkpass-viewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.manso.mytickets.services;
//  w  w  w  .j a  va2  s . com
import java.io.File;

import com.manso.mytickets.TicketBackFragment;
import com.manso.mytickets.TicketFrontFragment;

import android.support.v4.app.Fragment;

public class EventTicketPassStrategy implements IPassStrategy {

  private File dir;

  public EventTicketPassStrategy(File dir) {
    this.dir = dir;
  }
  
  @Override
  public Fragment getFrontFragment() {
    return TicketFrontFragment.newInstance(this.dir.getPath());    
  }

  @Override
  public Fragment getBackFragment() {    
    return TicketBackFragment.newInstance(this.dir.getPath());
  }

}




Java Source Code List

com.manso.mytickets.HandleIntentAsyncTask.java
com.manso.mytickets.TicketBackFragment.java
com.manso.mytickets.TicketFrontFragment.java
com.manso.mytickets.ViewTicketFrontActivity.java
com.manso.mytickets.services.EventTicketPassStrategy.java
com.manso.mytickets.services.IPassStrategy.java
com.manso.mytickets.services.ManifestService.java
com.manso.mytickets.services.PassReadingService.java
com.manso.mytickets.services.PassStorageService.java
com.manso.mytickets.services.PassStrategyService.java
com.manso.mytickets.services.PassTypes.java
com.manso.mytickets.utils.BarcodeEncoder.java
com.manso.mytickets.utils.FileReader.java
com.manso.mytickets.utils.ImageUtils.java
com.manso.mytickets.utils.RandomNameGenerator.java
com.manso.mytickets.utils.Sha1.java