using Offers;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace UI.Notification
{
    public class OfferCompletedNotification : MonoBehaviour
    {
        [SerializeField] TextMeshProUGUI clientName;
        [SerializeField] TextMeshProUGUI messageText;
        [SerializeField] TextMeshProUGUI rewardText;
        [SerializeField] Image clientIcon;

        public void SetInformation(Offer offer)
        {
            clientIcon.sprite = offer.CustomerIcon;
            rewardText.text = "+" + offer.Reward.ToString();
            messageText.text = "Order #" + offer.OfferNumber.ToString() + " done :)";
            clientName.text = offer.ClientName;
        }
    }
}