// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_ADDR = "address";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_NAME = "name";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_PORT = "port";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_RECON = "reconnect";


import android.os.Bundle;
import static com.disappointedpig.midi.MIDIConstants.RINFO_ADDR;
import static com.disappointedpig.midi.MIDIConstants.RINFO_NAME;
import static com.disappointedpig.midi.MIDIConstants.RINFO_PORT;
import static com.disappointedpig.midi.MIDIConstants.RINFO_RECON;
package com.disappointedpig.midi;



public class MIDIAddressBookEntry {

    private String address;
    private int port;
    private String name;
    private Boolean reconnect;

    public MIDIAddressBookEntry() {
    }

    public MIDIAddressBookEntry(Bundle rinfo) {
        address = rinfo.getString(RINFO_ADDR,"");
        port = rinfo.getInt(RINFO_PORT);
        name = rinfo.getString(RINFO_NAME,"");
        reconnect = rinfo.getBoolean(RINFO_RECON,false);
    }

    public Bundle rinfo() {
        Bundle rinfo = new Bundle();
        rinfo.putString(RINFO_NAME,name);
        rinfo.putString(RINFO_ADDR,address);
        rinfo.putInt(RINFO_PORT,port);
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_ADDR = "address";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_NAME = "name";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_PORT = "port";
// 
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public static final String RINFO_RECON = "reconnect";


// Path: midi/src/main/java/com/disappointedpig/midi/MIDIAddressBookEntry.java
import android.os.Bundle;
import static com.disappointedpig.midi.MIDIConstants.RINFO_ADDR;
import static com.disappointedpig.midi.MIDIConstants.RINFO_NAME;
import static com.disappointedpig.midi.MIDIConstants.RINFO_PORT;
import static com.disappointedpig.midi.MIDIConstants.RINFO_RECON;

package com.disappointedpig.midi;



public class MIDIAddressBookEntry {

    private String address;
    private int port;
    private String name;
    private Boolean reconnect;

    public MIDIAddressBookEntry() {
    }

    public MIDIAddressBookEntry(Bundle rinfo) {
        address = rinfo.getString(RINFO_ADDR,"");
        port = rinfo.getInt(RINFO_PORT);
        name = rinfo.getString(RINFO_NAME,"");
        reconnect = rinfo.getBoolean(RINFO_RECON,false);
    }

    public Bundle rinfo() {
        Bundle rinfo = new Bundle();
        rinfo.putString(RINFO_NAME,name);
        rinfo.putString(RINFO_ADDR,address);
        rinfo.putInt(RINFO_PORT,port);
        rinfo.putBoolean(RINFO_RECON,reconnect);