Exemple #1
0
 public void CopyTo(IMessages messages)
 {
     if (messages == null)
         return;
     if (_messageList != null)
     {
         foreach (var message in _messageList)
             messages.Add(message);
     }
     if (_messageMap == null)
         return;
     foreach (var keyValuePair in _messageMap)
         messages.Add(keyValuePair.Key, keyValuePair.Value);
 }
Exemple #2
0
 public static void Info(this IMessages msg, Ast.ILNode node, string str, params object[] o)
 {
     msg.Info(string.Format(str, o), node);
 }
Exemple #3
0
 public static void FatalError(this IMessages msg, string str, params object[] o)
 {
     msg.FatalError(string.Format(str, o));
 }
 public CustomersController(IMessages messages)
 {
     _messages = messages;
 }
Exemple #5
0
        /// <summary>
        /// Copies all messages from this instance over to the supplied instance.
        /// </summary>
        /// <param name="messages">The messages.</param>
        public void CopyTo(IMessages messages)
        {
            if (messages == null) return;

            if (_messageList != null)
                foreach (string error in _messageList)
                    messages.Add(error);

            if (_messageMap != null)
                foreach (KeyValuePair<string, string> pair in _messageMap)
                    messages.Add(pair.Key, pair.Value);
        }
Exemple #6
0
 public static async Task <Statuses> RegisterStatusCallbackAsync(this IMessages api, GoogleApiClient client, Android.Gms.Nearby.Messages.StatusCallback statusCallback)
 {
     return((await api.RegisterStatusCallback(client, statusCallback)).JavaCast <Statuses> ());
 }
 public AmazonHelpIntent(IMessages messages)
 {
     m_messages = messages;
 }
 public static async Task <Statuses> GetPermissionStatusAsync(this IMessages api, GoogleApiClient client)
 {
     return((await api.GetPermissionStatus(client)).JavaCast <Statuses> ());
 }
 public OverviewEmailFormatter(IMessages messages)
 {
     m_messages = messages;
 }
Exemple #10
0
 public productsController(IMessages messages, ILogger <productsController> logger)
 {
     _logger   = logger;
     _messages = messages;
 }
Exemple #11
0
 protected abstract IMessages Load(CultureInfo locale, IMessages parent);
Exemple #12
0
 protected virtual void OnLocaleChange(CultureInfo locale) => Messages = Load(locale);
Exemple #13
0
 public void Acknowledge(IMessages <T> messages) => AcknowledgeAsync(messages).GetAwaiter().GetResult();
Exemple #14
0
 public void ReconsumeLater(IMessages <T> messages, TimeSpan delayTimeInMs)
 => ReconsumeLaterAsync(messages, delayTimeInMs).GetAwaiter().GetResult();
Exemple #15
0
 public static void FatalError(this IMessages msg, Ast.ILNode node, string str, params object[] o)
 {
     msg.FatalError(string.Format(str, o), node);
 }
 public static async Task <Statuses> UnsubscribeAsync(this IMessages api, GoogleApiClient client, Android.App.PendingIntent pendingIntent)
 {
     return((await api.Unsubscribe(client, pendingIntent)).JavaCast <Statuses> ());
 }
 public CommanController(IMessages messages, ILogger <CommanController> logger)
 {
     _logger   = logger;
     _messages = messages;
 }
 public static async Task <Statuses> PublishAsync(this IMessages api, GoogleApiClient client, Android.Gms.Nearby.Messages.Message message, Android.Gms.Nearby.Messages.PublishOptions options)
 {
     return((await api.Publish(client, message, options)).JavaCast <Statuses> ());
 }
Exemple #19
0
 public InvoiceController(IMessages messages)
 {
     _messages = messages;
 }
Exemple #20
0
 public virtual void HandleMessage(IMessages messages)
 {
 }
Exemple #21
0
 public static void Message(this IMessages msg, string str, ILNode n, params object[] o)
 {
     msg.Message(string.Format(str, o), n);
 }
Exemple #22
0
 public static async Task <Statuses> SubscribeAsync(this IMessages api, GoogleApiClient client, Android.Gms.Nearby.Messages.MessageListener listener, Android.Gms.Nearby.Messages.SubscribeOptions options)
 {
     return((await api.Subscribe(client, listener, options)).JavaCast <Statuses> ());
 }
Exemple #23
0
 public static void Warning(this IMessages msg, string str, params object[] o)
 {
     msg.Warning(string.Format(str, o));
 }
Exemple #24
0
 public static void Info(this IMessages msg, string str, params object[] o)
 {
     msg.Info(string.Format(str, o));
 }
Exemple #25
0
 public GetScheduleForStore(IMessages messages, IHttpRequestConverter httpRequestConverter, ILoggerProvider log)
 {
     _messages             = messages;
     _httpRequestConverter = httpRequestConverter;
     _log = log.CreateLogger(nameof(GetScheduleForStore));
 }