Example #1
0
        private static void OnAddRow(TDLanguage memberInstance)
        {
            string key = memberInstance.id;

            if (m_DataCache.ContainsKey(key))
            {
                Log.e(string.Format("Invaild,  TDLanguageTable Id already exists {0}", key));
            }
            else
            {
                m_DataCache.Add(key, memberInstance);
                m_DataList.Add(memberInstance);
            }
        }
Example #2
0
        public static void Parse(byte[] fileData)
        {
            m_DataCache.Clear();
            m_DataList.Clear();
            if (fileData == null)
            {
                return;
            }

            DataStreamReader dataR = new DataStreamReader(fileData);
            int rowCount           = dataR.GetRowCount();

            for (int i = 0; i < rowCount; ++i)
            {
                TDLanguage memberInstance = new TDLanguage();
                memberInstance.ReadRow(dataR, null);
                OnAddRow(memberInstance);
            }
            Log.i(string.Format("Parse Success TDLanguage"));
        }
Example #3
0
 static void CompleteRowAdd(TDLanguage tdData)
 {
 }