초기 커밋.
This commit is contained in:
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