예제 #1
0
 /// <summary>
 /// Called when player clicks Rest button
 /// </summary>
 public void OnClickRest()
 {
     Logger.Log("OnClickRest", Category.UserInput);
     _             = SoundManager.Play(CommonSounds.Instance.Click01);
     clientResting = !clientResting;
     RequestRest.Send(clientResting);
     Chat.AddExamineMsgToClient(clientResting ? startRestMessage : endRestMessage);
     // TODO: trigger rest intent
 }
예제 #2
0
        public string Execute(string firstName, string lastName, string mobileNum)
        {
            JObject response;

            requestRest = new RequestRest();

            // Mobile number search.
            // If the subscription exists, it will grab the existing subscription_id and edit the subscription with (POST).
            // If the subscription does not exist, it will add it as a new record.
            if (SearchExist(firstName, lastName, mobileNum))
            {
                response = PostSubscription(firstName, lastName, mobileNum);
            }
            else
            {
                response = PutSubscription(firstName, lastName, mobileNum);
            }

            // Get report from response.
            return(GetReport(response));
        }