초기 커밋.

This commit is contained in:
2026-04-01 20:16:50 +09:00
parent f78d79089f
commit 93394e54ac
59 changed files with 3440 additions and 0 deletions

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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);
}
}
}

View 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..);
}
}
}

View 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);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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..);
}
}
}

View 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);
}
}
}

View 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);
}
}
}