cn.jpush.api.schedule.Periodical.setTime_unit C# (CSharp) Method

setTime_unit() public method

public setTime_unit ( string time_unit ) : Periodical
time_unit string
return Periodical
        public Periodical setTime_unit(string time_unit)
        {
            Preconditions.checkArgument(!String.IsNullOrEmpty(time_unit), "The time_unit must not be empty.");
            Preconditions.checkArgument(StringUtil.IsTimeunit(time_unit), "The time_unit must be the right format.");
            this.time_unit = time_unit;
            return this;
        }