초기 커밋.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user