// Path: baggle-datagrams/src/inouire/baggle/types/IllegalDatagramException.java
// public class IllegalDatagramException extends Exception{
// 
// }
// 
// Path: baggle-datagrams/src/inouire/baggle/types/Key.java
// public enum Key{
//     CONNECT,RECONNECT,DISCONNECT,
//     ACCEPT,DENY,PASSWORD,
//     START,STOP,PROGRESS,TIME,
//     JOIN,LEAVE,WORD,CHAT,STATUS,
//     SCORE,RESULT,
//     CLIENT,
//     PING,SERVER,
//     SUBMIT,GETLIST
// }


package inouire.baggle.datagrams;import inouire.baggle.types.IllegalDatagramException;
import inouire.baggle.types.Key;
 /* Copyright 2009-2018 Edouard Garnier de Labareyre
  *
  * This file is part of B@ggle.
  *
  * B@ggle is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
  *
  * B@ggle is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with B@ggle.  If not, see <http://www.gnu.org/licenses/>.
  */


public class CHATDatagram{
        
    public String msg=null;
    public Integer id=null;

    //CHAT|msg=Bonjour tout le monde! (client -> server)
    public CHATDatagram(String msg){
        this.msg=msg;
        this.id=null;
    }

    //CHAT|id=657|msg=Bonjour Edouard, comment vas tu ?  (server -> client)
    public CHATDatagram(int id,String msg){
        this.msg=msg;
        this.id=id;
    }

// Path: baggle-datagrams/src/inouire/baggle/types/IllegalDatagramException.java
// public class IllegalDatagramException extends Exception{
// 
// }
// 
// Path: baggle-datagrams/src/inouire/baggle/types/Key.java
// public enum Key{
//     CONNECT,RECONNECT,DISCONNECT,
//     ACCEPT,DENY,PASSWORD,
//     START,STOP,PROGRESS,TIME,
//     JOIN,LEAVE,WORD,CHAT,STATUS,
//     SCORE,RESULT,
//     CLIENT,
//     PING,SERVER,
//     SUBMIT,GETLIST
// }


// Path: baggle-datagrams/src/inouire/baggle/datagrams/CHATDatagram.java
package inouire.baggle.datagrams;import inouire.baggle.types.IllegalDatagramException;
import inouire.baggle.types.Key;

 /* Copyright 2009-2018 Edouard Garnier de Labareyre
  *
  * This file is part of B@ggle.
  *
  * B@ggle is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
  *
  * B@ggle is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with B@ggle.  If not, see <http://www.gnu.org/licenses/>.
  */


public class CHATDatagram{
        
    public String msg=null;
    public Integer id=null;

    //CHAT|msg=Bonjour tout le monde! (client -> server)
    public CHATDatagram(String msg){
        this.msg=msg;
        this.id=null;
    }

    //CHAT|id=657|msg=Bonjour Edouard, comment vas tu ?  (server -> client)
    public CHATDatagram(int id,String msg){
        this.msg=msg;
        this.id=id;
    }

    public CHATDatagram(String[] args) throws IllegalDatagramException{