コード例 #1
0
        public bool Post([FromBody] MapRequest model)
        {
            if (model != null && !string.IsNullOrWhiteSpace(model.Client) && !string.IsNullOrWhiteSpace(model.Emotion))
            {
                StatusCollection.Save(model.Client, model.Emotion);
                ProcessEmotionRequest(model.Client, model.Emotion);

                RequestCounter += 1;
                LastUpdateTime  = DateTime.UtcNow;

                return(true);
            }
            else
            {
                return(false);
            }
        }