/// <summary> /// Create an input screen. /// </summary> /// <param name="title">Screen title.</param> /// <param name="inputs">List of inputs.</param> /// <param name="method">Input processor delegate method.</param> /// <returns>UssdScreen instance.</returns> public static UssdScreen Input(string title, List <UssdInput> inputs, InputProcessorAsyncDelegate method) { return(new UssdScreen() { Title = title, Type = UssdScreenTypes.Input, InputProcessorAsync = method, Inputs = inputs, }); }
/// <summary> /// Create an input screen. /// </summary> /// <param name="title">Screen title.</param> /// <param name="inputs">List of inputs.</param> /// <param name="method">Input processor delegate method.</param> /// <returns>UssdScreen instance.</returns> public static UssdScreen Input(string title, List<UssdInput> inputs, InputProcessorAsyncDelegate method) { return new UssdScreen() { Title = title, Type = UssdScreenTypes.Input, InputProcessorAsync = method, Inputs = inputs, }; }