Back to project page GlassCounter.
The source code is released under:
Apache License
If you think the Android project GlassCounter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.barcodeeye.scan.result; // w w w .java2 s. c o m import java.util.List; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.github.barcodeeye.scan.api.CardPresenter; import com.google.zxing.Result; import com.google.zxing.client.result.ParsedResult; /** * @author javier.romero */ public abstract class ResultProcessor<T extends ParsedResult> { private final Context mContext; private final T mParsedResult; private final Result mRawResult; private final Uri mPhotoUri; public ResultProcessor(Context context, T parsedResult, Result result, Uri photoUri) { mContext = context; mParsedResult = parsedResult; mRawResult = result; mPhotoUri = photoUri; } public Context getContext() { return mContext; } public T getParsedResult() { return mParsedResult; } public Result getRawResult() { return mRawResult; } public Uri getPhotoUri() { return mPhotoUri; } public abstract List<CardPresenter> getCardResults(); public static PendingIntent createPendingIntent(Context context, Intent intent) { return PendingIntent.getActivity(context, 0, intent, 0); } }