초기 커밋.
This commit is contained in:
63
ssgrestserver/request/웹핸들링/입력/AInputTextHandler.cs
Normal file
63
ssgrestserver/request/웹핸들링/입력/AInputTextHandler.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
abstract class AInputTextHandler : ARequestObject
|
||||
{
|
||||
|
||||
protected string updateTextName = "";
|
||||
|
||||
protected abstract void setUpdateData();
|
||||
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
this.setUpdateData();
|
||||
|
||||
if (!mRequestParameterKVPairList.ContainsKey("보낸사람"))
|
||||
{
|
||||
return "없는데이터 - 보낸사람";
|
||||
}
|
||||
if (!mRequestParameterKVPairList.ContainsKey(updateTextName))
|
||||
{
|
||||
return "없는데이터 - " + updateTextName;
|
||||
}
|
||||
|
||||
코더확인객채생성여부();
|
||||
|
||||
JObject bufObj = new JObject();
|
||||
|
||||
bufObj.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
||||
|
||||
bufObj.Add(updateTextName, mRequestParameterKVPairList[updateTextName]);
|
||||
|
||||
bufObj.Add("입력시간", DateTime.Now.ToString());
|
||||
|
||||
if (mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
mAccessableDictionary[m채널이름] = bufObj;
|
||||
}
|
||||
else
|
||||
{
|
||||
mAccessableDictionary.Add(m채널이름, bufObj);
|
||||
}
|
||||
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
|
||||
foreach (var item in mAccessableDictionary[m채널이름])
|
||||
{
|
||||
retObj.Add(item.Key, item.Value);
|
||||
}
|
||||
|
||||
retObj.Add("status", "200");
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력QNA.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력QNA.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력QNA : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "QNA";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.QNA);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
52
ssgrestserver/request/웹핸들링/입력/입력경품프로모션.cs
Normal file
52
ssgrestserver/request/웹핸들링/입력/입력경품프로모션.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력경품프로모션 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
if (!mRequestParameterKVPairList.ContainsKey("보낸사람"))
|
||||
{
|
||||
return "없는데이터 - 보낸사람";
|
||||
}
|
||||
if (!mRequestParameterKVPairList.ContainsKey("텍스트"))
|
||||
{
|
||||
return "없는데이터 - 텍스트";
|
||||
}
|
||||
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
retObj.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
||||
|
||||
retObj.Add("텍스트", mRequestParameterKVPairList["텍스트"]);
|
||||
|
||||
retObj.Add("입력시간", DateTime.Now.ToString());
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은경품정보);
|
||||
|
||||
if (mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
mAccessableDictionary[m채널이름] = retObj;
|
||||
}
|
||||
else
|
||||
{
|
||||
mAccessableDictionary.Add(m채널이름, retObj);
|
||||
}
|
||||
|
||||
|
||||
|
||||
retObj.Add("status", "200");
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력공지.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력공지.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력공지 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "공지";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.공지);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력동영상.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력동영상.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력동영상 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "동영상";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.동영상);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력매진.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력매진.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력매진 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "매진";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.매진);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
ssgrestserver/request/웹핸들링/입력/입력상품수량.cs
Normal file
48
ssgrestserver/request/웹핸들링/입력/입력상품수량.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력상품수량 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
if (!mRequestParameterKVPairList.ContainsKey("보낸사람"))
|
||||
{
|
||||
return "없는데이터 - 보낸사람";
|
||||
}
|
||||
if (!mRequestParameterKVPairList.ContainsKey("텍스트"))
|
||||
{
|
||||
return "없는데이터 - 텍스트";
|
||||
}
|
||||
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
retObj.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
||||
|
||||
retObj.Add("텍스트", mRequestParameterKVPairList["텍스트"]);
|
||||
|
||||
retObj.Add("입력시간", DateTime.Now.ToString());
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은상품수량);
|
||||
|
||||
if (mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
mAccessableDictionary[m채널이름] = retObj;
|
||||
}
|
||||
else
|
||||
{
|
||||
mAccessableDictionary.Add(m채널이름, retObj);
|
||||
}
|
||||
|
||||
retObj.Add("status", "200");
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력상품평.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력상품평.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력상품평 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "상품평";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.상품평);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
49
ssgrestserver/request/웹핸들링/입력/입력씬목록.cs
Normal file
49
ssgrestserver/request/웹핸들링/입력/입력씬목록.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력씬이름 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
|
||||
if (!mRequestParameterKVPairList.ContainsKey("씬이름"))
|
||||
{
|
||||
return "없는데이터 - 씬이름";
|
||||
}
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.씬이름);
|
||||
|
||||
if (!mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
JObject bufObj = new JObject();
|
||||
|
||||
bufObj.Add("씬이름", mRequestParameterKVPairList["씬이름"]);
|
||||
|
||||
mAccessableDictionary.Add(m채널이름, bufObj);
|
||||
}
|
||||
else
|
||||
{
|
||||
mAccessableDictionary[m채널이름]["씬이름"] = mRequestParameterKVPairList["씬이름"];
|
||||
}
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
|
||||
foreach (var item in mAccessableDictionary[m채널이름])
|
||||
{
|
||||
retObj.Add(item.Key, item.Value);
|
||||
}
|
||||
|
||||
retObj.Add("status", "200");
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력채팅.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력채팅.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력채팅 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "채팅";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.채팅);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력채팅판.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력채팅판.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력채팅판 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "채팅판";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.채팅판);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력콜데이터.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력콜데이터.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력콜데이터 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "콜데이터";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.콜데이터);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/입력/입력텍스트.cs
Normal file
21
ssgrestserver/request/웹핸들링/입력/입력텍스트.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 입력텍스트 : AInputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "텍스트";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은텍스트);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
50
ssgrestserver/request/웹핸들링/입력/자막입력.cs
Normal file
50
ssgrestserver/request/웹핸들링/입력/자막입력.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 자막입력 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
|
||||
코더확인객채생성여부();
|
||||
|
||||
if (송출가능목록.Except(mRequestParameterKVPairList.Keys).Count() == 송출가능목록.Length)
|
||||
{
|
||||
return "없는데이터 - 입력될 자막정보가 하나도 없음";
|
||||
}
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.코더상태);
|
||||
|
||||
foreach (string item in 송출가능목록)
|
||||
{
|
||||
if (mRequestParameterKVPairList.ContainsKey(item))
|
||||
{
|
||||
if (mRequestParameterKVPairList[item] != "Y" && mRequestParameterKVPairList[item] != "N")
|
||||
{
|
||||
return "이상한데이터 - " + item + " 입력할 자막정보가 잘못됨(Y,N)";
|
||||
}
|
||||
|
||||
mAccessableDictionary[m채널이름][item] = mRequestParameterKVPairList[item];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
조회시간추가();
|
||||
|
||||
if (!mAccessableDictionary[m채널이름].ContainsKey("status"))
|
||||
{
|
||||
mAccessableDictionary[m채널이름].Add("status", "200");
|
||||
}
|
||||
|
||||
|
||||
return mAccessableDictionary[m채널이름].ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
43
ssgrestserver/request/웹핸들링/조회/AOutputTextHandler.cs
Normal file
43
ssgrestserver/request/웹핸들링/조회/AOutputTextHandler.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
abstract class AOutputTextHandler : ARequestObject
|
||||
{
|
||||
|
||||
protected string updateTextName = "";
|
||||
|
||||
protected abstract void setUpdateData();
|
||||
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
setUpdateData();
|
||||
|
||||
//mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.코더상태);
|
||||
|
||||
if (!mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
return "서버에 없는 정보 - 텍스트";
|
||||
}
|
||||
|
||||
코더확인객채생성여부();
|
||||
|
||||
조회시간추가();
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
foreach (var item in mAccessableDictionary[m채널이름])
|
||||
{
|
||||
retObj.Add(item.Key, item.Value);
|
||||
}
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존QNA.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존QNA.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존QNA : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "QNA";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.QNA);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
24
ssgrestserver/request/웹핸들링/조회/기존경품프로모션.cs
Normal file
24
ssgrestserver/request/웹핸들링/조회/기존경품프로모션.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존경품프로모션 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은경품정보);
|
||||
|
||||
if (!mAccessableDictionary.ContainsKey(this.m채널이름))
|
||||
{
|
||||
return "서버에 없는 정보 - 경품데이터";
|
||||
}
|
||||
|
||||
return mAccessableDictionary[this.m채널이름].ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존공지.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존공지.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존공지 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "공지";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.공지);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존동영상.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존동영상.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존동영상 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "동영상";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.동영상);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존매진.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존매진.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존매진 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "매진";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.매진);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
24
ssgrestserver/request/웹핸들링/조회/기존상품수량.cs
Normal file
24
ssgrestserver/request/웹핸들링/조회/기존상품수량.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존상품수량 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은상품수량);
|
||||
|
||||
if (!mAccessableDictionary.ContainsKey(m채널이름))
|
||||
{
|
||||
return "서버에 없는 정보 - 상품데이터";
|
||||
}
|
||||
|
||||
return mAccessableDictionary[m채널이름].ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존상품평.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존상품평.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존상품평 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "상품평";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.상품평);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존채팅.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존채팅.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존채팅 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "채팅";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.채팅);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존채팅판.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존채팅판.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존채팅판 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "채팅판";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.채팅판);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존콜데이터.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존콜데이터.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존콜데이터 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "콜데이터";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.콜데이터);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ssgrestserver/request/웹핸들링/조회/기존텍스트.cs
Normal file
21
ssgrestserver/request/웹핸들링/조회/기존텍스트.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 기존텍스트 : AOutputTextHandler
|
||||
{
|
||||
protected override void setUpdateData()
|
||||
{
|
||||
|
||||
updateTextName = "텍스트";
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은텍스트);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
29
ssgrestserver/request/웹핸들링/조회/자막조회.cs
Normal file
29
ssgrestserver/request/웹핸들링/조회/자막조회.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 자막조회 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
코더확인객채생성여부();
|
||||
|
||||
조회시간추가();
|
||||
|
||||
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.코더상태);
|
||||
|
||||
if (!mAccessableDictionary[m채널이름].ContainsKey("status"))
|
||||
{
|
||||
mAccessableDictionary[m채널이름].Add("status", "200");
|
||||
}
|
||||
|
||||
return mAccessableDictionary[m채널이름].ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
27
ssgrestserver/request/웹핸들링/조회/조회씬목록.cs
Normal file
27
ssgrestserver/request/웹핸들링/조회/조회씬목록.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 조회씬이름 : ARequestObject
|
||||
{
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
JObject retObj = new JObject();
|
||||
|
||||
foreach (var item in DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.씬이름)[m채널이름])
|
||||
{
|
||||
retObj.Add(item.Key, item.Value);
|
||||
}
|
||||
|
||||
retObj.Add("status", "200");
|
||||
|
||||
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user