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)); } }
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)); } }
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)); }
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)); } }
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)); } }
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)); } }