Exemple #1
0
        public void Invite(string userId, Guid gameQueueId, string msg, string url, List <string> users)
        {
            DateTime timestamp = DateTime.UtcNow;

            foreach (var user in users)
            {
                InviteMessage message = new InviteMessage()
                {
                    UserId        = userId,
                    GameQueueId   = gameQueueId,
                    InvitedUserId = user,
                    Message       = msg,
                    Url           = url,
                    Timestamp     = timestamp
                };

                this.inviteQueue.AddMessage(message);
            }
        }
        public void Invite(string userId, Guid gameQueueId, string msg, string url, List<string> users)
        {
            DateTime timestamp = DateTime.UtcNow;

            foreach (var user in users)
            {
                InviteMessage message = new InviteMessage()
                {
                    UserId = userId,
                    GameQueueId = gameQueueId,
                    InvitedUserId = user,
                    Message = msg,
                    Url = url,
                    Timestamp = timestamp
                };

                this.inviteQueue.AddMessage(message);
            }
        }