50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|