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); }
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); }