public static RequestMentorBwoink Send(string userId, string mentorToken, string userIDToBwoink, string message)
    {
        RequestMentorBwoink msg = new RequestMentorBwoink
        {
            Userid       = userId,
            MentorToken  = mentorToken,
            UserToBwoink = userIDToBwoink,
            Message      = message
        };

        msg.Send();
        return(msg);
    }
        public void OnInputSend(string message)
        {
            /*var asmentorMsg = new AdminChatMessage
             * {
             *      fromUserid = ServerData.UserID,
             *      Message = message,
             *      wasFromAdmin = true
             * };*/// I dont know what this does, as the variable is unused completely

            var    msg = $"{ServerData.Auth.CurrentUser.DisplayName}: {message}";
            string MentorOrAdminToken = PlayerList.Instance.MentorToken;

            if (MentorOrAdminToken == null)
            {
                MentorOrAdminToken = PlayerList.Instance.AdminToken;
            }
            RequestMentorBwoink.Send(ServerData.UserID, MentorOrAdminToken, selectedPlayer.uid, msg);
        }
Ejemplo n.º 3
0
 public void OnInputSend(string message)
 {
     RequestMentorBwoink.Send(selectedPlayer.uid, $"{ServerData.Auth.CurrentUser.DisplayName}: {message}");
 }