초기 커밋.
This commit is contained in:
50
ssgrestserver/request/웹핸들링/입력/자막입력.cs
Normal file
50
ssgrestserver/request/웹핸들링/입력/자막입력.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user