Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 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"])));
 }
Esempio n. 4
0
 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"]))));
 }