초기 커밋.

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