daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tcpMessage.model;
  2.  
  3. import javafx.beans.property.SimpleStringProperty;
  4. import javafx.event.ActionEvent;
  5. import javafx.scene.control.Button;
  6. import tcpMessage.controllers.TcpRequestService;
  7.  
  8. import javax.sound.sampled.Mixer;
  9.  
  10. /**
  11.  * Created by Szymon on 18.07.2018.
  12.  */
  13. public class TempUser {
  14.     private String userName;
  15.     private Button button;
  16.     private String appOwner;
  17.     private String roomPassword;
  18.     private String roomName;
  19.  
  20.     public TcpRequestService requestService;
  21.  
  22.     public TempUser(String name, Button button, String appOwner, String roomName, String roomPassword) {
  23.  
  24.  
  25.         this.userName = name;
  26.         this.button = button;
  27.         this.appOwner = appOwner;
  28.         this.roomName = roomName;
  29.         this.roomPassword = roomPassword;
  30.  
  31.         this.button.setText("Mute");
  32.         this.button.setOnAction(this::handleButtonAction);
  33.  
  34.  
  35.     }
  36.  
  37.     private void handleButtonAction(ActionEvent event) throws InterruptedException{
  38.         this.requestService.sendMuteUserRequest(appOwner,roomName,userName,roomPassword );
  39.     }
  40.     public String getUserName() {
  41.         return userName;
  42.     }
  43.  
  44.     public void setUserName(String userName) {
  45.         this.userName = userName;
  46.     }
  47.  
  48.     public Button getButton() {
  49.         return button;
  50.     }
  51.  
  52.     public void setButton(Button button) {
  53.         this.button = button;
  54.     }
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top