Пример #1
0
        public void Prepare(AddictionalData data, object tag)
        {
            var user = tag as IMessageTarget;

            if (user != null)
            {
                data.Set(user.ExtractMessages());
            }
        }
Пример #2
0
 public void Prepare(AddictionalData data, object tag)
 {
     try
     {
         var deviceInfo = new DeviceInfo();
         deviceInfo.Name = string.Format(
             "[Model: {0}]; [DeviceId: {1}]",
             CrossDeviceInfo.Current.Model,
             CrossDeviceInfo.Current.Id);
         data.Set(deviceInfo);
     }
     catch (Exception e)
     {
         data.Set(new DeviceInfo()
         {
             Name = string.Format("[UnknownDevice][error: {0}]", e.Message)
         });
         Log.Error("Error while getting device info", e);
     }
 }
 public void Prepare(AddictionalData data, object tag)
 {
     data.Set(Listener.LastGeolocation);
 }