using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ssgrestserver { class 새경품프로모션 : ARequestObject, INeedKeyRequest { //string mRequestURL = "promo/lotteryPromo.do?promoNo="; string mRequestURL = "promo/lotteryPromo.do?promoNo="; public void setNeedKeys() { mNeedKeyList.Add("프로모션코드"); mNeedKeyList.Add("보낸사람"); } protected override string startUpdateWork() { JObject receiveData = JObject.Parse(httpRequest(mRequestURL + mRequestParameterKVPairList["프로모션코드"])); receiveData.Add("조회시간", DateTime.Now.ToString()); receiveData.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]); return receiveData.ToString(Newtonsoft.Json.Formatting.None); } } }