Пример #1
0
        public override void OnExecute()
        {
            PushBullet = Context.CredentialProvider.Get <PushBulletCredential, PushbulletClient>();

            var response = PushBullet.PushLink(new PushbulletSharp.Models.Requests.PushLinkRequest()
            {
                Title = Title,
                Body  = Body,
                Url   = Link
            });
        }
Пример #2
0
        public void Push(string title, string message, string url)
        {
            var device = GetDevice();

            if (device != null)
            {
                var request = new PushLinkRequest
                {
                    DeviceIden = device.Iden,
                    Title      = title,
                    Body       = message,
                    Url        = url
                };

                var response = _client.PushLink(request);
            }
        }