Example #1
0
        public static MatterOneOff converToMe(MatterBasic matter)
        {
            var ret = new MatterOneOff();

            MatterBasic.CopyTo(matter, ret);
            ret.matter_addion_info = new Json();
            ret.matter_type        = MatterType.oneOffEvent;
            return(ret);
        }
Example #2
0
        public static MatterPeriodicity converToMe(MatterBasic matter, MatterPeriodicityType period)
        {
            var ret = new MatterPeriodicity();

            MatterBasic.CopyTo(matter, ret);
            ret.matter_addion_info = new Json();
            ret.period_type        = period;
            ret.matter_type        = MatterType.periodicEvent;
            return(ret);
        }