Beispiel #1
0
 public YouDao(List<string> p)
 {
     toFile = new ToFile();
     for (int i = 1; i < p.Count; i++)
     {
         transTxt += p[i] + " ";
     }
 }
Beispiel #2
0
        public ChinaBank(List<string> Params)
        {
            tofile = new ToFile();

            //default this is AUD
            country = "aus";
            if (Params.Count > 1)
            {
                country = Params[1].ToLower();
                CountryCode = GetCountryCode(country);
            }
        }
Beispiel #3
0
 public SaveSuggestions()
 {
     tofile = new ToFile();
 }
Beispiel #4
0
        /// <summary>
        /// Text message: UserId, UserMessage, MessageType
        /// Event       : EventKey, WXEvent, MessageType
        /// </summary>
        /// <param name="uId"></param>
        /// <param name="uMsg"></param>
        /// <param name="msgType"></param>
        public MessageService(string uId, string uMsg, string msgType)
        {
            toFile = new ToFile();

            switch (msgType)
            {
                case "text":
                    userId = uId;
                    msg = uMsg.ToLower();
                    if (msg.Length > 0)
                    {
                        Parameters = new List<string>();
                        InitParameters();

                        vc = new ValidCheck(uId, Parameters);
                        cg = new category(Parameters);
                    }
                    break;
                case "event":
                    toFile.WriteTxt("Write data to event");
                    msg = uMsg.ToLower();
                    break;
            }
        }
Beispiel #5
0
 public DataService()
 {
     tofile = new ToFile();
 }