using UnityEngine;

namespace mgaia.Utils.Review
{
    /// <summary>
    /// Método de review que abre um site que redireciona para o lugar correto de review
    /// </summary>
    /// <owner>Victor</owner>
    public class WebsiteReviewMethod : IReviewMethod
    {
        private string mUrlFormat;
        private string mGameId;

        public WebsiteReviewMethod(string urlFormat, string gameId)
        {
            mUrlFormat = urlFormat;
            mGameId = gameId;
        }

        public void OpenIntent()
        {
            Application.OpenURL(string.Format(mUrlFormat, mGameId));   
        }
    }
}