public BaseBubble(Context context, BubbleData bubbleData, int greenThreshold, int yellowThreshold) { this.context = context; this.greenThreshold = greenThreshold; this.yellowThreshold = yellowThreshold; highlightColor = GetHighlightColor(bubbleData.Stock); }
public MaximisedBubble(Context context, BubbleData bubbleData) : base(context, bubbleData) { this.bubbleData = bubbleData; if (bubbleData.DeliveryDate != string.Empty) { deliveryVisibility = ViewStates.Visible; backgroundDrawable = ContextCompat.GetDrawable(context, Resource.Drawable.bg_transparent_black); } else { deliveryVisibility = ViewStates.Gone; backgroundDrawable = ContextCompat.GetDrawable(context, Resource.Drawable.bg_rounded_bottom_black); } }
public BaseBubble CreateBubble(IndicatorState indicatorState, TrackedBarcode barcode) { BubbleData barcodeData = MockBubbleDataObject(barcode.Data); switch (indicatorState) { case IndicatorState.MINIMISED: return(new MinimisedBubble(context, barcodeData)); case IndicatorState.MAXIMISED: return(new MaximisedBubble(context, barcodeData)); default: return(new NoBubble(context, barcodeData)); } }
public MinimisedBubble(Context context, BubbleData bubbleData) : base(context, bubbleData) { this.bubbleData = bubbleData; }
public NoBubble(Context context, BubbleData bubbleData) : base(context, bubbleData) { }
public BaseBubble(Context context, BubbleData bubbleData) : this(context, bubbleData, 15, 2) { }