Exemple #1
0
        private void SignUpCompleteHandler(object source, ResponseArgs args)
        {
            if (!args.Response.error)
            {

            }
            //Error occurred
            else
            {

            }

            if (SignUpComplete != null)
            {
                SignUpComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
            }
        }
Exemple #2
0
        private void RemoveSongsFromDatabaseCompleteHandler(object source, ResponseArgs args)
        {
            if (!args.Response.error)
            {

            }
            //Error occurred
            else
            {

            }

            if (RemoveSongFromDatabaseComplete != null)
            {
                RemoveSongFromDatabaseComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
            }
        }
Exemple #3
0
        private void QRNewCodeCompleteHandler(object sender, ResponseArgs args)
        {
            if (!args.Response.error)
            {
                this.QRCode = args.Response.message;
            }

            if (QRNewCodeComplete != null)
                QRNewCodeComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
        }
Exemple #4
0
        private void LogoutCompleteHandler(object source, ResponseArgs args)
        {
            if (!args.Response.error)
            {
                this.SessionActive = false;
                this.IsLoggedIn = false;
                this.DJKey = -1;
            }
            //Error occurred
            else
            {

            }

            //Raise the event that this completed
            if (LogoutComplete != null)
            {
                LogoutComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
            }
        }
Exemple #5
0
        private void CreateSessionCompleteHandler(object source, ResponseArgs args)
        {
            if (!args.Response.error)
            {
                this.SessionActive = true;
            }

            if (CreateSessionComplete != null)
            {
                CreateSessionComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
            }
        }
Exemple #6
0
        private void ChangeSongRequestCompleteHandler(object source, ResponseArgs args)
        {
            if (!args.Response.error)
            {

            }
            //Error occurred
            {

            }

            if (ChangeSongRequestComplete != null)
            {
                ChangeSongRequestComplete(this, new DJModelArgs(args.Response.error, args.Response.message, args.UserState));
            }
        }