public async static Task <UssdResponse> CheckEcg(Session session, Dictionary <string, string> data) { var mpower = Util.MPowerInstance(session.Mobile); var response = await mpower.ServicesVerifyEcgBill(data["AccountNumber"]); return(UssdResponse.Input(response.Message)); }
public async static Task <UssdResponse> AirtimeTopup(Session session, Dictionary <string, string> data) { var mpower = Util.MPowerInstance(session.Mobile); var response = await mpower.ServicesAirtime(data["Network"] , data["Mobile"], Convert.ToDecimal(data["Amount"]), data["Pin"]); return(UssdResponse.Input(response.Message)); }
public static async Task <UssdResponse> CustomGreeting(Session session, Dictionary <string, string> data) { return(UssdResponse.Input(String.Format("Hello, {0} {1} {2}" , data["Title"], data["FirstName"], data["LastName"]))); }
public static async Task <UssdResponse> CustomGreeting(Session session, Dictionary <string, string> data) { return(await Task.FromResult(UssdResponse.Input(String.Format("Hello {0} {1} of {2}!" , data["FirstName"], data["LastName"], data["Company"])))); }