Exemplo n.º 1
0
        /*
         * Method creates a temporary Alarm entry to be utilized
         * prior to pushing onto the list
         */
        private Alarms createTmpAlarm(string[] fields)
        {
            if (fields[0] == null) { return null; }
            if (fields[0].CompareTo("A") != 0) { return null; }
            //the behavior above may not be needed after reimplemented
            //from the calling code (where it would better live)

            Alarms tmp = new Alarms();

            tmp.name = fields[1];
            tmp.setRunning(false);
            tmp.ringAt = checkAlarmDay(convertSavedFields(fields));
            tmp.soundBite = fields[5];

            return tmp;
        }