using System.Net; using Newtonsoft.Json.Linq; using REPORT_API_ver6.Services; namespace REPORT_API_ver6.Models { public class PkeyInfo { public string SecurityKey { get; set; } = string.Empty; public string Pkey { get; set; } = string.Empty; public int isKiwi { get; set; } = 0; public PkeyInfo(string securityKey) { Security security = new Security(); SecurityKey = securityKey; Pkey = security.decryptString(WebUtility.UrlDecode(securityKey)); if (Pkey.IndexOf("|K|W|") > -1) { Pkey = Pkey.Replace("|K|W|", ""); isKiwi = 1; } } public PkeyInfo() { } } /// /// KON Question 정보 /// public class QuestionInfo { public string variableName { get; set; } = string.Empty; public string explain { get; set; } = string.Empty; public string structureType { get; set; } = string.Empty; public string questionType { get; set; } = string.Empty; public string itemType { get; set; } = string.Empty; public string variableType { get; set; } = string.Empty; public string maxCount { get; set; } = string.Empty; public string questionTitle { get; set; } = string.Empty; public JObject attrJson { get; set; } = new JObject(); public JObject itemJson { get; set; } = new JObject(); public JObject optionJson { get; set; } = new JObject(); public QuestionInfo() { } } public class DerivedParam { public string VariableID { get; set; } = string.Empty; public string OriginID { get; set; } = string.Empty; public string VariableType { get; set; } = string.Empty; public string VariableTitle { get; set; } = string.Empty; public string VariableInfo { get; set; } = string.Empty; /// /// DerivedParam 설정 /// /// 파생 변수명 /// 수정 전 변수명 /// 파생변수 타입 /// 파생변수 제목 /// 파생변수 정보 public DerivedParam(string variableID, string originID, string variableType, string variableTitle, string variableInfo) { VariableID = variableID; OriginID = originID; VariableType = variableType; VariableTitle = variableTitle; VariableInfo = variableInfo; } public DerivedParam() { } } public class BookmarkParam { public string BookmarkPage { get; set; } public string BookmarkID { get; set; } public string BookmarkTitle { get; set; } public string BookmarkInfo { get; set; } public string BookmarkJson { get; set; } public string IsOpen { get; set; } /// /// BookmarkParam 설정 /// /// TABULATION, CROSSTAB /// 북마크 ID /// 북마크 제목 /// 북마크 설명 /// 북마크 정보 /// 공개/비공개 public BookmarkParam(string bookmarkPage, string bookmarkID, string bookmarkTitle, string bookmarkInfo, string bookmarkJson, string isOpen) { BookmarkPage = bookmarkPage; BookmarkID = bookmarkID; BookmarkTitle = bookmarkTitle; BookmarkInfo = bookmarkInfo; BookmarkJson = bookmarkJson; IsOpen = isOpen; } public BookmarkParam() { } } }