function GroupMember(memberJson) {
    this.name = memberJson.name;
    this.key = memberJson.key;
    this.badgeId = memberJson.badge;

    this.badge = new Badge.Badge(this.badgeId);
    this.dataAnalyzer = new DataAnalyzer();

    this.badge.badgeDialogue.onNewChunk = function(chunk) {
        this.dataAnalyzer.addChunk(chunk);
    }.bind(this);

    this.badge.badgeDialogue.onChunkCompleted = function(chunk) {
        if (chunk.voltage) {
            this.voltage = chunk.voltage;
        }
        if (this.meeting) {
            this.meeting.logChunk(chunk, this);
        }
    }.bind(this);




    this.badge.badgeDialogue.onNewScanChunk = function(chunk) {
        //this.dataAnalyzer.addScanChunk(chunk);
    }.bind(this);

    this.badge.badgeDialogue.onScanChunkCompleted = function(chunk) {
        if (chunk.voltage) {
            this.voltage = chunk.voltage;
        }
        if (this.meeting) {
            this.meeting.logScanChunk(chunk, this);
        }
    }.bind(this);




    this.badge.onConnect = function() {
        if (this.$lastConnect) {
            this.$lastConnect.text(this.badge.lastConnect.toUTCString());
        }
    }.bind(this);

    this.clearData = function() {
        this.dataAnalyzer.clearData();
        this.badge.badgeDialogue.clearData();
        this.badge.lastConnect = new Date();
        this.seenWarningGiven = false;
    }.bind(this);
}
/**
 * Group Member Model
 * Created by Group, contains a Badge, and has some basic data about the member
 */
Group Member Model
Created by Group, contains a Badge, and has some basic data about the member
Group Member Model Created by Group contains a Badge and has some basic data about the member
function GroupMember(memberJson) {
    this.name = memberJson.name;
    this.key = memberJson.key;
    this.badgeId = memberJson.badge;
    this.badge = new Badge.Badge(this.badgeId);
    this.dataAnalyzer = new DataAnalyzer();
    this.badge.badgeDialogue.onNewChunk = function(chunk) {
        this.dataAnalyzer.addChunk(chunk);
    }.bind(this);
    this.badge.badgeDialogue.onChunkCompleted = function(chunk) {
        if (chunk.voltage) {
            this.voltage = chunk.voltage;
        }
        if (this.meeting) {
            this.meeting.logChunk(chunk, this);
        }
    }.bind(this);
    this.badge.badgeDialogue.onNewScanChunk = function(chunk) {
    }.bind(this);
    this.badge.badgeDialogue.onScanChunkCompleted = function(chunk) {
        if (chunk.voltage) {
            this.voltage = chunk.voltage;
        }
        if (this.meeting) {
            this.meeting.logScanChunk(chunk, this);
        }
    }.bind(this);
    this.badge.onConnect = function() {
        if (this.$lastConnect) {
            this.$lastConnect.text(this.badge.lastConnect.toUTCString());
        }
    }.bind(this);
    this.clearData = function() {
        this.dataAnalyzer.clearData();
        this.badge.badgeDialogue.clearData();
        this.badge.lastConnect = new Date();
        this.seenWarningGiven = false;
    }.bind(this);
}
function GroupMember ( memberJson ) { this . name = memberJson . name ; this . key = memberJson . key ; this . badgeId = memberJson . badge ; this . badge = new Badge . Badge ( this . badgeId ) ; this . dataAnalyzer = new DataAnalyzer ( ) ; this . badge . badgeDialogue . onNewChunk = function ( chunk ) { this . dataAnalyzer . addChunk ( chunk ) ; } . bind ( this ) ; this . badge . badgeDialogue . onChunkCompleted = function ( chunk ) { if ( chunk . voltage ) { this . voltage = chunk . voltage ; } if ( this . meeting ) { this . meeting . logChunk ( chunk , this ) ; } } . bind ( this ) ; this . badge . badgeDialogue . onNewScanChunk = function ( chunk ) { } . bind ( this ) ; this . badge . badgeDialogue . onScanChunkCompleted = function ( chunk ) { if ( chunk . voltage ) { this . voltage = chunk . voltage ; } if ( this . meeting ) { this . meeting . logScanChunk ( chunk , this ) ; } } . bind ( this ) ; this . badge . onConnect = function ( ) { if ( this . $lastConnect ) { this . $lastConnect . text ( this . badge . lastConnect . toUTCString ( ) ) ; } } . bind ( this ) ; this . clearData = function ( ) { this . dataAnalyzer . clearData ( ) ; this . badge . badgeDialogue . clearData ( ) ; this . badge . lastConnect = new Date ( ) ; this . seenWarningGiven = false ; } . bind ( this ) ; }
Group Member Model
 Created by Group, contains a Badge, and has some basic data about the member
Group Member Model Created by Group contains a Badge and has some basic data about the member
//this.dataAnalyzer.addScanChunk(chunk);