Example #1
0
        public static string GetChatMessage(RestCommand command, int chatMessageID)
        {
            ChatMessage chatMessage = ChatMessages.GetChatMessage(command.LoginUser, chatMessageID);

            if (chatMessage.OrganizationID != command.Organization.OrganizationID)
            {
                throw new RestException(HttpStatusCode.Unauthorized);
            }
            return(chatMessage.GetXml("ChatMessage", true));
        }