コード例 #1
0
        public void Post(PingDTO ping)
        {
            var roll    = Roll(2, 6);
            var rollStr = string.Join(" ", roll);
            var message = $"{roll.Sum()} [ {rollStr} ]";

            ActionEventQueue.Instance.Value.Add(new ResponseDTO {
                Message = message, Nickname = ping.Nickname, UserGuid = ping.UserGuid, Type = Types.Roll
            });
        }
コード例 #2
0
 public void Open(PingDTO info)
 {
     UserManager.Instance.Value.OpenVoting(info.UserGuid, info.Nickname);
 }
コード例 #3
0
 public void Close(PingDTO info)
 {
     UserManager.Instance.Value.CloseVoting(info.UserGuid, info.Nickname);
 }
コード例 #4
0
 public void Post(PingDTO ping)
 {
     UserManager.Instance.Value.Ping(ping.UserGuid, ping.Nickname);
 }