コード例 #1
0
        public MessagingImplementation()
        {
#if PORTABLE
            EmailMessenger = null;
            PhoneDialer    = null;
            SmsMessenger   = null;
#else
            EmailMessenger = new EmailTask();
            PhoneDialer    = new PhoneCallTask();
            SmsMessenger   = new SmsTask();
#endif
        }
コード例 #2
0
        public MessagingImplementation()
        {
#if PORTABLE
            EmailMessenger = null;
            PhoneDialer    = null;
            SmsMessenger   = null;
#elif __ANDROID__
            Settings       = new Settings();
            EmailMessenger = new EmailTask(Settings.Email);
            PhoneDialer    = new PhoneCallTask(Settings.Phone);
            SmsMessenger   = new SmsTask();
#else
            EmailMessenger = new EmailTask();
            PhoneDialer    = new PhoneCallTask();
            SmsMessenger   = new SmsTask();
#endif
        }