package com.unibuy.smartdevice.ui;

import android.content.Context;
import com.unibuy.smartdevice.tools.HandlerMain;
import com.unibuy.smartdevice.ui.dialog.MemberCardPickupDialog;

/**
 * Chengwai (晟崴版) 銷售流程處理器。
 * 點選商品/購物車時直接進入員工卡刷卡取貨 Dialog (MemberCardPickupDialog)。
 */
public class SaleFlowHandler {

    protected final Context context;
    protected final SaleFlowCallback callback;
    protected final HandlerMain handlerMain;

    public SaleFlowHandler(Context context, HandlerMain handlerMain, SaleFlowCallback callback) {
        this.context = context;
        this.handlerMain = handlerMain;
        this.callback = callback;
    }

    public void onSetupUI() {
        // 晟崴版 UI 設定，預設無動作
    }

    public void onSetupUI(android.view.View rootView) {
        // 晟崴版 UI 設定，預設無動作
    }

    public void onBuyRequested() {
        new MemberCardPickupDialog(context, handlerMain).show();
    }

    public void onBarcodeReceived(String rawData) {
        // 晟崴版不處理掃碼
    }

    public void onPickupRequested() {
        // 晟崴版不處理取貨碼
    }
}
