- 임시 커밋

This commit is contained in:
2017-02-08 16:26:29 +09:00
parent 152e6af4e8
commit 31791b2dd7
8 changed files with 260 additions and 17 deletions

View File

@@ -29,6 +29,8 @@ namespace NewsCrawler
m_Data.Add("ann-rights-issue", true);
m_Data.Add("ann-patent", true);
m_Data.Add("ann-patent-search-string", new Regex("(미국|중국)"));
m_Data.Add("ann-profit-change", true);
m_Data.Add("ann-profit-change-rate", 50.0f);
Load();
Migration();
@@ -174,8 +176,11 @@ namespace NewsCrawler
}
public static void SetAnnouncement(bool bDartAPI,
bool bSupply, bool bRevenue, bool bRightsIssue, bool bPatent,
float fSupplyContractRate, float fRevenueRate, string strPatent)
bool bSupply, float fSupplyContractRate,
bool bRevenue, float fRevenueRate,
bool bRightsIssue,
bool bPatent, string strPatent,
bool bProfitChange, float fProfitChangeRate)
{
m_Data["ann-dart-api"] = bDartAPI;
@@ -190,6 +195,9 @@ namespace NewsCrawler
m_Data["ann-patent"] = bPatent;
m_Data["ann-patent-search-string"] = strPatent;
m_Data["ann-profit-change"] = bProfitChange;
m_Data["ann-profit-change-rate"] = fProfitChangeRate;
Save();
}
@@ -233,6 +241,16 @@ namespace NewsCrawler
{
return (Regex)m_Data["ann-patent-search-string"];
}
public static bool CheckProfitChange()
{
return (bool)m_Data["ann-profit-change"];
}
public static float GetProfitChangeRate()
{
return (float)m_Data["ann-profit-change-rate"];
}
#endregion
}
}