diff --git a/Common/Model/RewardPoints.cs b/Common/Model/RewardPoints.cs index 9435cb4..0d34bd7 100644 --- a/Common/Model/RewardPoints.cs +++ b/Common/Model/RewardPoints.cs @@ -15,6 +15,9 @@ namespace Common.Model public string InviteMessageBody { get; set; } public string SourceCustomerId { get; set; } public string ShowShareBtn { get; set; } + public string RewardPts { get; set; } + public string RegReward { get; set; } + public string TranReward { get; set; } //public string MembershipId { get; set; } public List Details { get; set; } } diff --git a/JsonRx/Config/ResponseMsg.json b/JsonRx/Config/ResponseMsg.json index d923fa6..8792386 100644 --- a/JsonRx/Config/ResponseMsg.json +++ b/JsonRx/Config/ResponseMsg.json @@ -1871,7 +1871,7 @@ }, { "Key": "INVITE_MESSAGE_TITLE", - "Message": "Receive a FREE 5£ bonus credit as Reward amount", + "Message": "Receive a FREE @rewardPoint £ bonus credit as Reward amount", "Lang": "en" }, { @@ -1901,7 +1901,7 @@ }, { "Key": "INVITE_MESSAGE_BODY", - "Message": "You and your friend will each be given £5.00 in bonus credit. Get £1 after they successfully register, and £4 after their first transaction. There may be minimum send requirements. Terms and Conditions.", + "Message": "You and your friend will each be given £ @rewardAmount in bonus credit. Get £ @RegReward after they successfully register, and £ @TranReward after their first transaction. There may be minimum send requirements. Terms and Conditions.", "Lang": "en" }, { diff --git a/Repository/Mobile/MobileServicesRepo.cs b/Repository/Mobile/MobileServicesRepo.cs index ee0ac84..fb7dc59 100644 --- a/Repository/Mobile/MobileServicesRepo.cs +++ b/Repository/Mobile/MobileServicesRepo.cs @@ -3118,10 +3118,16 @@ namespace Repository.Mobile r.InviteCode = dt.Rows[0]["inviteCode"].ToString(); r.TotalReferral = dt.Rows[0]["totalReferral"].ToString(); r.RewardMoney = string.Format("{0:0.##}", dt.Rows[0]["rewardMoney"].ToString()); - r.InviteMessageTitle = Utilities.GetLanguageMapping("INVITE_MESSAGE_TITLE", lang).Message; - r.InviteMessageBody = Utilities.GetLanguageMapping("INVITE_MESSAGE_BODY", lang).Message; + r.InviteMessageTitle = Utilities.GetLanguageMapping("INVITE_MESSAGE_TITLE", lang).Message.Replace("@rewardPoint", dt.Rows[0]["totalPoints"].ToString()); + r.InviteMessageBody = Utilities.GetLanguageMapping("INVITE_MESSAGE_BODY", lang).Message + .Replace("@rewardAmount", dt.Rows[0]["totalPoints"].ToString()) + .Replace("@RegReward", dt.Rows[0]["regPoints"].ToString()) + .Replace("@TranReward", dt.Rows[0]["tranPoints"].ToString()); r.SourceCustomerId = dt.Rows[0]["sourceCustomerId"].ToString(); r.ShowShareBtn = ConfigurationManager.AppSettings["ShowShareBtn"].ToString(); + r.RewardPts = dt.Rows[0]["totalPoints"].ToString(); + r.RegReward = dt.Rows[0]["regPoints"].ToString(); + r.TranReward = dt.Rows[0]["tranPoints"].ToString(); var rewardDetails = new List(); foreach (DataRow row1 in ds.Tables[1].Rows)