コード例 #1
0
        public async Task <IHttpActionResult> Get(string id, string message)
        {
            var sender    = new UserDTO {
            };
            var recipient = new RecipientDTO {
                Id = id
            };
            var notification = new NotificationDTO {
                Content = message
            };

            ChatUtils.Notify(sender, new List <RecipientDTO> {
                recipient
            }, notification);
            return(Ok());
        }