초기 커밋.
This commit is contained in:
45
ssgrestserver/request/6월추가개발/방송채택.cs
Normal file
45
ssgrestserver/request/6월추가개발/방송채택.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
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 = "/mfront/mobile/broadtalkAdopt?";
|
||||
|
||||
public void setNeedKeys()
|
||||
{
|
||||
mNeedKeyList.Add("seqGFrameNo");
|
||||
mNeedKeyList.Add("talkSeq");
|
||||
|
||||
mNeedKeyList.Add("보낸사람");
|
||||
}
|
||||
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
mIsSendTypeGet = false;
|
||||
|
||||
string bufURLDataString = "";
|
||||
|
||||
foreach (KeyValuePair<string, string> item in mRequestParameterKVPairList)
|
||||
{
|
||||
bufURLDataString += item.Key + @"=" + item.Value + @"&";
|
||||
}
|
||||
|
||||
bufURLDataString = bufURLDataString.Substring(0, bufURLDataString.Length - 1);
|
||||
|
||||
JObject receiveData = JObject.Parse(httpRequest(mRequestURL + bufURLDataString));
|
||||
|
||||
receiveData.Add("조회시간", DateTime.Now.ToString());
|
||||
receiveData.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
||||
|
||||
return receiveData.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user