public void Send(PushDto dto)
 {
     // Queue a notification to send
     Thread.Sleep(2000); //Hide application in smartphone and wait for notification
     _broker.QueueNotification(new GcmNotification
     {
         RegistrationIds = new List <string>
         {
             dto.DeviceToken
         },
         Notification = JObject.Parse("{ \"body\" : \"This is body of notification\", \"title\" : \"This is title\" }")
     });
 }
 public void ReceiveNotification(PushDto dto)
 {
     _pushService = new PushService();
     _pushService.Send(dto);
 }