예제 #1
0
        protected override TaskBase.TaskExecutionResult TaskLogic()
        {
            if (this._testBehavior)
            {
                LiveController liveController1 = new LiveController();
                liveController1.FirebaseSend(string.Format("web::{0}::{1}", "http://strettoinv.com/test2/", "ME"),
                                             this.AndroidClientSession.TokenID,
                                             this.AndroidClientSession.ID);
                this.LogSession("Notification sent");
                return(new TaskBase.TaskExecutionResult());
            }

            if (this._suitableService == null)
            {
                Log.Error("PayTask::TaskLogic.. ServiceName is empty");
                return(new TaskBase.TaskExecutionResult());
            }

            if (string.IsNullOrEmpty(this._commandToExecute))
            {
                Log.Error("PayTask::TaskLogic.. Command to execute is null");
                return(new TaskBase.TaskExecutionResult());
            }

            LiveController liveController = new LiveController();

            liveController.FirebaseSend(this._commandToExecute,
                                        this.AndroidClientSession.TokenID,
                                        this.AndroidClientSession.ID);

            this.LogSession("Notification sent");
            return(new TaskBase.TaskExecutionResult());
        }
예제 #2
0
        protected override TaskBase.TaskExecutionResult TaskLogic()
        {
            LiveController controller = new LiveController();

            controller.FirebaseSend("aco", this.AndroidClientSession.TokenID, this.AndroidClientSession.ID);

            return(new TaskBase.TaskExecutionResult());
        }