public SimCorpMobile(IOutput output) { Screen = new OledScreen(); SimCard = new SimCard(SimCard.FormFactor.Nano, "+380000000000"); Battery = new LithiumIonBattery(3.75F, 3600); Microphone = new CarbonMicroPhone(); Speaker = new RegularSpeaker(output); Keyboard = new GboardKeyboard(); SmsStorage = new SmsStorage(output); SmsProvider = SmsProviderFactory.GetProvider(SmsStorage, SmsProviderFactory.Providers.Task); }
/// <summary> /// Asynchronously sends an SMS message to a user. /// </summary> /// <param name="message">The message to send.</param> /// <returns>The task representing the asynchronous operation.</returns> public Task SendAsync(IdentityMessage message) { var smsProvider = SmsProviderFactory.GetProvider(); return(smsProvider.SendAsync(message.Destination, message.Body)); }