- 임시 커밋
This commit is contained in:
22
Config.cs
22
Config.cs
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user